记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:12:5: error: 'count' was not declared in this scope
     count++;
     ^~~~~
foo.cc:12:5: note: suggested alternative: 'countt'
     count++;
     ^~~~~
     countt
foo.cc:16:5: error: 'count' was not declared in this scope
     count++;
     ^~~~~
foo.cc:16:5: note: suggested alternative: 'countt'
     count++;
     ^~~~~
     countt
foo.cc:20:5: error: 'count' was not declared in this scope
     count++;
     ^~~~~
foo.cc:20:5: note: suggested alternative: 'countt'
     count++;
     ^~~~~
     countt
foo.cc:22:10: error: 'count' was not declared in this scope
  cout << count;
          ^~~~~
foo.cc:22:10: note: suggested alternative: 'countt'
  cout << count;
          ^~~~~
          countt
foo.cc:7:15: warning: unused variable 'countt' [-Wunused-variable]
  int a, b, c, countt = 0;
               ^~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
p1013 求不及格的课程数(p63页实例2)
语言
C++
递交时间
2021-11-19 23:05:46
评测时间
2021-11-19 23:05:46
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes