Compile Error

/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
 }
 ^

信息

递交者
类型
递交
题目
P1001 打印字符
语言
C++
递交时间
2023-09-24 12:03:26
评测时间
2023-09-24 12:03:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes