/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:41:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   41 |     for(int i=1;i<=m;i++)
      |     ^~~
foo.cc:43:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   43 |         if(a>b)
      |         ^~
foo.cc: At global scope:
foo.cc:48:5: error: expected unqualified-id before 'for'
   48 |     for(int i=1;i<=cur;i++)
      |     ^~~
foo.cc:48:17: error: 'i' does not name a type
   48 |     for(int i=1;i<=cur;i++)
      |                 ^
foo.cc:48:24: error: 'i' does not name a type
   48 |     for(int i=1;i<=cur;i++)
      |                        ^
foo.cc:50:5: error: 'cout' does not name a type
   50 |     cout<<ans<<endl;
      |     ^~~~
foo.cc:51:5: error: expected unqualified-id before 'return'
   51 |     return 0;
      |     ^~~~~~
foo.cc:52:1: error: expected declaration before '}' token
   52 | }
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1101 传染病防治
语言
C++
递交时间
2021-12-20 10:20:13
评测时间
2021-12-20 10:20:13
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes