/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:19:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
         for( int i = 0; i < l; i++ )
         ^~~
/in/foo.cc:21:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
             if( ch[i] == 'o' ) word[ 1 ]++;
             ^~
/in/foo.cc:21:20: error: 'i' was not declared in this scope
             if( ch[i] == 'o' ) word[ 1 ]++;
                    ^
/in/foo.cc:22:20: error: 'i' was not declared in this scope
             if( ch[i] == 'd' ) word[ 2 ]++;
                    ^
/in/foo.cc:23:20: error: 'i' was not declared in this scope
             if( ch[i] == 'm' ) word[ 3 ]++;
                    ^
/in/foo.cc:24:20: error: 'i' was not declared in this scope
             if( ch[i] == 'r' ) word[ 4 ]++;
                    ^
/in/foo.cc:25:20: error: 'i' was not declared in this scope
             if( ch[i] == 'n' ) word[ 5 ]++;
                    ^
/in/foo.cc:26:20: error: 'i' was not declared in this scope
             if( ch[i] == 'i' ) word[ 6 ]++;
                    ^
/in/foo.cc:27:20: error: 'i' was not declared in this scope
             if( ch[i] == ' ' ) word[ 7 ]++;
                    ^
/in/foo.cc:36:33: error: 'j' was not declared in this scope
         printf("Case #%d: %d\n",j,ans);
                                 ^
/in/foo.cc: At global scope:
/in/foo.cc:38:5: error: expected unqualified-id before 'return'
     return 0;
     ^~~~~~
/in/foo.cc:39:1: error: expected declaration before '}' token
 }
 ^

信息

递交者
类型
递交
题目
P1902 学姐的清晨问候
语言
C++
递交时间
2018-08-06 18:02:57
评测时间
2018-08-06 18:02:57
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes