/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:30:6: error: 'X' was not declared in this scope
     }X
      ^
/in/foo.cc:4:35: warning: statement has no effect [-Wunused-value]
 #define fo(i,j,k) for (int i=(j);i<=(k);i++)
                                   ^
/in/foo.cc:31:2: note: in expansion of macro 'fo'
  fo(i,0,n-1){ans[i*2]=a[i];ans[i*2+1]=-1;}
  ^~
/in/foo.cc:4:44: error: expected ';' before ')' token
 #define fo(i,j,k) for (int i=(j);i<=(k);i++)
                                            ^
/in/foo.cc:31:2: note: in expansion of macro 'fo'
  fo(i,0,n-1){ans[i*2]=a[i];ans[i*2+1]=-1;}
  ^~
/in/foo.cc:4:19: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
 #define fo(i,j,k) for (int i=(j);i<=(k);i++)
                   ^
/in/foo.cc:36:3: note: in expansion of macro 'fo'
   fo(i,0,2*n-1) printf("%d ",ans[i]+1);printf("\n");
   ^~
/in/foo.cc:36:40: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   fo(i,0,2*n-1) printf("%d ",ans[i]+1);printf("\n");
                                        ^~~~~~

信息

递交者
类型
递交
题目
P1554 硬币游戏
语言
C++
递交时间
2018-09-06 21:28:44
评测时间
2018-09-06 21:28:44
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes