/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:9:12: warning: right operand of comma operator has no effect [-Wunused-value]
  for (i=0,i<10,i++)
           ~^~~
/in/foo.cc:9:19: error: expected ';' before ')' token
  for (i=0,i<10,i++)
                   ^
/in/foo.cc:14:2: error: expected primary-expression before 'int'
  int H,taotao = 0;
  ^~~
/in/foo.cc:14:2: error: expected ')' before 'int'
/in/foo.cc:14:6: warning: unused variable 'H' [-Wunused-variable]
  int H,taotao = 0;
      ^
/in/foo.cc:14:8: warning: unused variable 'taotao' [-Wunused-variable]
  int H,taotao = 0;
        ^~~~~~
/in/foo.cc:15:7: error: 'H' was not declared in this scope
  cin>>H;
       ^
/in/foo.cc:17:12: warning: right operand of comma operator has no effect [-Wunused-value]
  for (i=0,i<10,i++)
           ~^~~
/in/foo.cc:17:19: error: expected ';' before ')' token
  for (i=0,i<10,i++)
                   ^
/in/foo.cc:27:1: error: expected primary-expression at end of input
 }
 ^
/in/foo.cc:27:1: error: expected ';' at end of input
/in/foo.cc:27:1: error: expected primary-expression at end of input
/in/foo.cc:27:1: error: expected ')' at end of input
/in/foo.cc:27:1: error: expected statement at end of input
/in/foo.cc:17:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for (i=0,i<10,i++)
  ^~~
cc1plus: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
/in/foo.cc:7:6: warning: unused variable 'a' [-Wunused-variable]
  int a[100];
      ^
/in/foo.cc:27:1: error: expected '}' at end of input
 }
 ^

信息

递交者
类型
递交
题目
P1102 陶陶摘苹果
语言
C++
递交时间
2018-09-01 20:18:04
评测时间
2018-09-01 20:18:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes