/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:11:16: error: 'cnt' was not declared in this scope
    if(i%10==x) cnt++;
                ^~~
/in/foo.cc:11:16: note: suggested alternative: 'int'
    if(i%10==x) cnt++;
                ^~~
                int
/in/foo.cc:8:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(i=1;i<=n;i++)
  ^~~
/in/foo.cc:14:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   cout<<cnt;
   ^~~~
/in/foo.cc:14:9: error: 'cnt' was not declared in this scope
   cout<<cnt;
         ^~~
/in/foo.cc:14:9: note: suggested alternative: 'int'
   cout<<cnt;
         ^~~
         int

信息

递交者
类型
递交
题目
P1848 记数问题
语言
C++
递交时间
2018-11-26 13:47:47
评测时间
2018-11-26 13:47:47
评测机
分数
0
总耗时
1328ms
峰值内存
132.562 MiB