/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:16:17: error: 'T' was not declared in this scope
     scanf("%d",&T);
                 ^
/in/foo.cc:12:33: error: expected ';' before '<=' token
 #define For(i,a,b) for(int i=a,i<=b;i++)
                                 ^
/in/foo.cc:17:5: note: in expansion of macro 'For'
     For(ii,1,T)
     ^~~
/in/foo.cc:12:33: error: expected primary-expression before '<=' token
 #define For(i,a,b) for(int i=a,i<=b;i++)
                                 ^
/in/foo.cc:17:5: note: in expansion of macro 'For'
     For(ii,1,T)
     ^~~
/in/foo.cc:19:21: error: 'n' was not declared in this scope
         scanf("%d",&n);
                     ^
/in/foo.cc:12:33: error: expected ';' before '<=' token
 #define For(i,a,b) for(int i=a,i<=b;i++)
                                 ^
/in/foo.cc:20:9: note: in expansion of macro 'For'
         For(i,1,n)  scanf("%d",&t[i]);
         ^~~
/in/foo.cc:12:33: error: expected primary-expression before '<=' token
 #define For(i,a,b) for(int i=a,i<=b;i++)
                                 ^
/in/foo.cc:20:9: note: in expansion of macro 'For'
         For(i,1,n)  scanf("%d",&t[i]);
         ^~~
/in/foo.cc:20:33: error: 't' was not declared in this scope
         For(i,1,n)  scanf("%d",&t[i]);
                                 ^
/in/foo.cc:21:16: error: 'f' was not declared in this scope
         memset(f,0,sizeof f);
                ^
/in/foo.cc:12:33: error: expected ';' before '<=' token
 #define For(i,a,b) for(int i=a,i<=b;i++)
                                 ^
/in/foo.cc:23:9: note: in expansion of macro 'For'
         For(i,1,3*n)
         ^~~
/in/foo.cc:12:33: error: expected primary-expression before '<=' token
 #define For(i,a,b) for(int i=a,i<=b;i++)
                                 ^
/in/foo.cc:23:9: note: in expansion of macro 'For'
         For(i,1,3*n)
         ^~~
/in/foo.cc:12:33: error: expected ';' before '<=' token
 #define For(i,a,b) for(int i=a,i<=b;i++)
                                 ^
/in/foo.cc:25:13: note: in expansion of macro 'For'
             For(j,1,n)
             ^~~
/in/foo.cc:12:33: error: expected primary-expression before '<=' token
 #define For(i,a,b) for(int i=a,i<=b;i++)
                                 ^
/in/foo.cc:25:13: note: in expansion of macro 'For'
             For(j,1,n)
             ^~~
/in/foo.cc:27:22: error: 't' was not declared in this scope
                 if(i%t[j]!=0)   f[i][j]|=f[i-1][j-1],f[i][j]|=f[i-1][j];
                      ^
/in/foo.cc:28:30: error: 't' was not declared in this scope
                 if(j>1) if(i%t[j-1]!=0) f[i][j-1]|=f[i-1][j];
                              ^
/in/foo.cc:12:33: error: expected ';' before '<=' token
 #define For(i,a,b) for(int i=a,i<=b;i++)
                                 ^
/in/foo.cc:32:9: note: in expansion of macro 'For'
         For(i,1,3*n)    if(f[i][n]) {printf("%d\n",i+1);flag=1;break;}
         ^~~
/in/foo.cc:12:33: error: expected primary-expression before '<=' token
 #define For(i,a,b) for(int i=a,i<=b;i++)
                                 ^
/in/foo.cc:32:9: note: in expansion of macro 'For'
         For(i,1,3*n)    if(f[i][n]) {printf("%d\n",i+1);flag=1;break;}
         ^~~

信息

递交者
类型
递交
题目
P1651 笨笨的道路通行
语言
C++
递交时间
2018-01-13 20:54:11
评测时间
2018-01-13 20:54:11
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes