/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:12:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(j=0;j<s[i].length();j++){
           ~^~~~~~~~~~~~~~
/in/foo.cc:29:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if (sum1>0 || sum2>0) printf("%d:%d\n",sum1,sum2);printf("\n");
  ^~
/in/foo.cc:29:52: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if (sum1>0 || sum2>0) printf("%d:%d\n",sum1,sum2);printf("\n");
                                                    ^~~~~~
/in/foo.cc:36:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(j=0;j<s[i].length();j++){
           ~^~~~~~~~~~~~~~
/in/foo.cc:46:46: error: expected primary-expression before ')' token
    if(max(sum1,sum2)>=21&& abs(sum2-sum1)>=2)){
                                              ^

信息

递交者
类型
递交
题目
P1217 乒乓球
语言
C++
递交时间
2020-06-01 19:37:49
评测时间
2020-06-01 19:37:49
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes