/ Vijos /

记录详情

Compile Error

/in/foo.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
 include <cstdio>
         ^
/in/foo.c:14:1: error: unknown type name 'define'
 define lowbit(x) ((x)&(-x))
 ^~~~~~
/in/foo.c:14:19: error: expected declaration specifiers or '...' before '(' token
 define lowbit(x) ((x)&(-x))
                   ^
/in/foo.c:20:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
 define FOR(i,a,n) for(int i=a; i<=n; ++i)
                                 ^~
/in/foo.c:20:38: error: expected identifier or '(' before '++' token
 define FOR(i,a,n) for(int i=a; i<=n; ++i)
                                      ^~
/in/foo.c:21:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
 define FO(i,a,n) for(int i=a; i<n; ++i)
                                ^
/in/foo.c:21:36: error: expected identifier or '(' before '++' token
 define FO(i,a,n) for(int i=a; i<n; ++i)
                                    ^~
/in/foo.c:23:1: error: unknown type name 'define'
 define lch p<<1,l,mid
 ^~~~~~
/in/foo.c:23:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'p'
 define lch p<<1,l,mid
            ^
/in/foo.c:28:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
 typedef vector<int> VI;
               ^
/in/foo.c:30:1: error: unknown type name 'pragma'
 pragma comment(linker, "/STACK:1024000000,1024000000")
 ^~~~~~
/in/foo.c:30:24: error: expected ')' before string constant
 pragma comment(linker, "/STACK:1024000000,1024000000")
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.c: In function 'Scan':
/in/foo.c:35:8: warning: implicit declaration of function 'getchar' [-Wimplicit-function-declaration]
 if((ch=getchar())=='-') flag=1;
        ^~~~~~~
/in/foo.c: In function 'Out':
/in/foo.c:41:10: warning: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
 if(a<0) {putchar('-'); a=-a;}
          ^~~~~~~
/in/foo.c: At top level:
/in/foo.c:48:5: error: variably modified 'a' at file scope
 int a[N][3], dp[N][N][3];
     ^
/in/foo.c:48:14: error: variably modified 'dp' at file scope
 int a[N][3], dp[N][N][3];
              ^~
/in/foo.c:48:14: error: variably modified 'dp' at file scope
/in/foo.c:50:1: error: unknown type name 'bool'
 bool check(int i, int b, int j, int c)
 ^~~~
/in/foo.c: In function 'main':
/in/foo.c:64:1: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
 scanf("%d%d",&n,&m);
 ^~~~~
/in/foo.c:64:1: warning: incompatible implicit declaration of built-in function 'scanf'
/in/foo.c:64:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
/in/foo.c:65:1: warning: implicit declaration of function 'FOR' [-Wimplicit-function-declaration]
 FOR(i,1,n) scanf("%d%d%d",&a[i][0],&a[i][1],&a[i][2]);
 ^~~
/in/foo.c:65:5: error: 'i' undeclared (first use in this function)
 FOR(i,1,n) scanf("%d%d%d",&a[i][0],&a[i][1],&a[i][2]);
     ^
/in/foo.c:65:5: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:65:12: error: expected ';' before 'scanf'
 FOR(i,1,n) scanf("%d%d%d",&a[i][0],&a[i][1],&a[i][2]);
            ^~~~~
/in/foo.c:66:12: error: expected ';' before 'FOR'
 FOR(i,1,n) FOR(j,1,i) {
            ^~~
/in/foo.c:73:12: error: expected ';' before 'FO'
 FOR(i,m,n) FO(j,0,3) ans=max(ans,dp[i][m][j]);
            ^~
/in/foo.c:74:1: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
 printf("%d\n",ans);
 ^~~~~~
/in/foo.c:74:1: warning: incompatible implicit declaration of built-in function 'printf'
/in/foo.c:74:1: note: include '<stdio.h>' or provide a declaration of 'printf'
/in/foo.c:74:15: error: 'ans' undeclared (first use in this function)
 printf("%d\n",ans);
               ^~~

信息

递交者
类型
递交
题目
P1464 积木游戏
语言
C
递交时间
2024-04-28 19:52:13
评测时间
2024-04-28 19:52:13
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes