Compile Error

foo.cc: In function 'int main()':
foo.cc:10:5: error: 'cin' was not declared in this scope
     cin>>n;
     ^~~
foo.cc:10:5: note: suggested alternative: 'sin'
     cin>>n;
     ^~~
     sin
foo.cc:17:9: error: 'cout' was not declared in this scope
         cout<<n0<<" - "<<n1<<" = "<<n2<<endl; 
         ^~~~
foo.cc:17:9: note: suggested alternative: 'cosl'
         cout<<n0<<" - "<<n1<<" = "<<n2<<endl; 
         ^~~~
         cosl
foo.cc:17:41: error: 'endl' was not declared in this scope
         cout<<n0<<" - "<<n1<<" = "<<n2<<endl; 
                                         ^~~~
foo.cc:17:41: note: suggested alternative: 'ynl'
         cout<<n0<<" - "<<n1<<" = "<<n2<<endl; 
                                         ^~~~
                                         ynl
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1204 黑洞数
语言
C++
递交时间
2021-08-20 11:20:51
评测时间
2021-08-20 11:20:51
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes