/in/foo.cc:2:9: error: ISO C++ forbids declaration of 'intmain' with no type [-fpermissive]
intmain()
^
/in/foo.cc: In function 'int intmain()':
/in/foo.cc:4:1: error: 'count' was not declared in this scope
count<<"A"<<endl<<"AAA"<<endl<<"AAAAA"<<endl<<"AAAAAAA";
^~~~~
/in/foo.cc:4:13: error: 'endl' was not declared in this scope
count<<"A"<<endl<<"AAA"<<endl<<"AAAAA"<<endl<<"AAAAAAA";
^~~~
/in/foo.cc:4:13: note: suggested alternative:
In file included from /usr/include/c++/6/iostream:39:0,
from /in/foo.cc:1:
/usr/include/c++/6/ostream:590:5: note: 'std::endl'
endl(basic_ostream<_CharT, _Traits>& __os)
^~~~
/in/foo.cc:6:1: error: expected ';' before '}' token
}
^