thanks alot man it fixed :)
and i am confusing on this one counter.cpp:84: error: expected unqualified-id before '{' token
counter.cpp:84: error: expected `,' or `;' before '{' token
if you remove the { about int main() that should go away. It's just improper syntax to put a curly brace above main without first closing it. It isn't needed in other words