记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:56:5: error: 'cin' was not declared in this scope
     cin>>m>>n;
     ^~~
foo.cc:56:5: note: suggested alternative: 'main'
     cin>>m>>n;
     ^~~
     main
foo.cc:61:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int j=0;j<s.size();j++)
                     ~^~~~~~~~~
foo.cc:67:17: error: 'cout' was not declared in this scope
     if(cnt==2)  cout<<"5";
                 ^~~~
foo.cc:67:17: note: suggested alternative: 'cnt'
     if(cnt==2)  cout<<"5";
                 ^~~~
                 cnt
foo.cc:68:17: error: 'cout' was not declared in this scope
     if(cnt==1)  cout<<"6";
                 ^~~~
foo.cc:68:17: note: suggested alternative: 'cnt'
     if(cnt==1)  cout<<"6";
                 ^~~~
                 cnt
foo.cc:69:17: error: 'cout' was not declared in this scope
     if(cnt==9)  cout<<"63";
                 ^~~~
foo.cc:69:17: note: suggested alternative: 'cnt'
     if(cnt==9)  cout<<"63";
                 ^~~~
                 cnt
foo.cc:70:17: error: 'cout' was not declared in this scope
     if(cnt==11) cout<<"65";
                 ^~~~
foo.cc:70:17: note: suggested alternative: 'cnt'
     if(cnt==11) cout<<"65";
                 ^~~~
                 cnt
foo.cc:71:18: error: 'cout' was not declared in this scope
     if(cnt==12)  cout<<"69";
                  ^~~~
foo.cc:71:18: note: suggested alternative: 'cnt'
     if(cnt==12)  cout<<"69";
                  ^~~~
                  cnt
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
2-7 有几个岛屿
语言
C++
递交时间
2021-05-11 19:22:30
评测时间
2021-05-11 19:22:30
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes