/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:25:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i = 0; i<input.size(); i++)
                    ~^~~~~~~~~~~~~
/in/foo.cc:38:16: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
         else if(w == 11 || l == 11)
                ^
/in/foo.cc:61:33: error: expected ')' before ';' token
     for(int x = 0; x<now; x += 2;)
                                 ^
/in/foo.cc:61:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for(int x = 0; x<now; x += 2;)
     ^~~
/in/foo.cc:61:34: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
     for(int x = 0; x<now; x += 2;)
                                  ^
/in/foo.cc:61:34: error: expected primary-expression before ')' token
/in/foo.cc:68:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i = 0; i<input.size(); i++)
                    ~^~~~~~~~~~~~~
/in/foo.cc:81:16: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
         else if(w == 21 || l == 21)
                ^
/in/foo.cc:104:33: error: expected ')' before ';' token
     for(int x = 0; x<now; x += 2;)
                                 ^
/in/foo.cc:104:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for(int x = 0; x<now; x += 2;)
     ^~~
/in/foo.cc:104:34: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
     for(int x = 0; x<now; x += 2;)
                                  ^
/in/foo.cc:104:34: error: expected primary-expression before ')' token

信息

递交者
类型
递交
题目
P1217 乒乓球
语言
C++
递交时间
2017-05-18 15:54:25
评测时间
2017-05-18 15:54:25
评测机
分数
0
总耗时
295ms
峰值内存
27.996 MiB