Compile Error

foo.cc:1:1: error: 'include' does not name a type; did you mean '__has_include'?
 include <iostream>
 ^~~~~~~
 __has_include
foo.cc: In function 'int main()':
foo.cc:5:2: error: 'cout' was not declared in this scope
  cout <<"AAAAAAA"endl; 
  ^~~~
foo.cc:5:9: error: unable to find string literal operator 'operator""endl' with 'const char [8]', 'long unsigned int' arguments
  cout <<"AAAAAAA"endl; 
         ^~~~~~~~~~~~~
foo.cc:6:9: error: unable to find string literal operator 'operator""endl' with 'const char [7]', 'long unsigned int' arguments
  cout <<" AAAAA"endl;
         ^~~~~~~~~~~~
foo.cc:7:9: error: unable to find string literal operator 'operator""endl' with 'const char [6]', 'long unsigned int' arguments
  cout <<"  AAA"endl;
         ^~~~~~~~~~~
foo.cc:8:9: error: unable to find string literal operator 'operator""endl' with 'const char [5]', 'long unsigned int' arguments
  cout <<"   A"endl;
         ^~~~~~~~~~
foo.cc:10:10: error: expected '}' at end of input
  return 0;
          ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1001 打印字符
语言
C++
递交时间
2021-11-06 21:37:15
评测时间
2021-11-06 21:37:15
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes