记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:5:2: error: 'string' was not declared in this scope
  string c[10000];
  ^~~~~~
foo.cc:5:2: note: suggested alternative: 'struct'
  string c[10000];
  ^~~~~~
  struct
foo.cc:6:2: error: 'gets' was not declared in this scope
  gets(s);
  ^~~~
foo.cc:11:4: error: 'c' was not declared in this scope
    c[j]=c[j]+s[i];
    ^
foo.cc:16:11: error: 'c' was not declared in this scope
   reverse(c[i].begin(),c[i].end());
           ^
foo.cc:16:3: error: 'reverse' was not declared in this scope
   reverse(c[i].begin(),c[i].end());
   ^~~~~~~
foo.cc:18:3: error: 'cout' was not declared in this scope
   cout<<c[i]<<" ";
   ^~~~
foo.cc:18:9: error: 'c' was not declared in this scope
   cout<<c[i]<<" ";
         ^
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
3-4 颠倒单词
比赛
2020苏青奥赛集训营(2021-3-28课后作业)
语言
C++
递交时间
2021-03-28 15:04:25
评测时间
2021-03-28 15:04:25
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes