/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:46: error: expected primary-expression before ')' token
  for(i=0;i<(n+1)/2;i++) {l[i][0]=0;l[i][1]=0;)
                                              ^
/in/foo.cc:8:11: warning: statement has no effect [-Wunused-value]
  for(i=0;i<n;i++)
          ~^~
/in/foo.cc:8:17: error: expected ';' before ')' token
  for(i=0;i<n;i++)
                 ^
/in/foo.cc:15:1: error: expected '}' at end of input
 }
 ^
/in/foo.cc:5:22: warning: unused variable 'j' [-Wunused-variable]
  int n,l[10000][2],i,j,x,y=0,result=0;
                      ^
/in/foo.cc:5:24: warning: unused variable 'x' [-Wunused-variable]
  int n,l[10000][2],i,j,x,y=0,result=0;
                        ^
/in/foo.cc:5:26: warning: unused variable 'y' [-Wunused-variable]
  int n,l[10000][2],i,j,x,y=0,result=0;
                          ^
/in/foo.cc:5:30: warning: unused variable 'result' [-Wunused-variable]
  int n,l[10000][2],i,j,x,y=0,result=0;
                              ^~~~~~
/in/foo.cc:15:1: error: expected '}' at end of input
 }
 ^

信息

递交者
类型
递交
题目
P1684 丢失的筷子
语言
C++
递交时间
2019-07-27 20:48:23
评测时间
2019-07-27 20:48:23
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes