/ Vijos /

记录详情

Compile Error

/in/foo.cc:1:1: error: 'include' does not name a type
 include <cstdio>
 ^~~~~~~
/in/foo.cc:14:1: error: 'define' does not name a type
 define lowbit(x) ((x)&(-x))
 ^~~~~~
/in/foo.cc:20:32: error: 'i' does not name a type
 define FOR(i,a,n) for(int i=a; i<=n; ++i)
                                ^
/in/foo.cc:20:38: error: expected unqualified-id before '++' token
 define FOR(i,a,n) for(int i=a; i<=n; ++i)
                                      ^~
/in/foo.cc:21:31: error: 'i' does not name a type
 define FO(i,a,n) for(int i=a; i<n; ++i)
                               ^
/in/foo.cc:21:36: error: expected unqualified-id before '++' token
 define FO(i,a,n) for(int i=a; i<n; ++i)
                                    ^~
/in/foo.cc:23:1: error: 'define' does not name a type
 define lch p<<1,l,mid
 ^~~~~~
/in/foo.cc:28:9: error: 'vector' does not name a type
 typedef vector<int> VI;
         ^~~~~~
/in/foo.cc:30:1: error: 'pragma' does not name a type
 pragma comment(linker, "/STACK:1024000000,1024000000")
 ^~~~~~
/in/foo.cc: In function 'int Scan()':
/in/foo.cc:35:16: error: 'getchar' was not declared in this scope
 if((ch=getchar())=='-') flag=1;
                ^
/in/foo.cc:37:19: error: 'getchar' was not declared in this scope
 while((ch=getchar())>='0'&&ch<='9') res=res*10+(ch-'0');
                   ^
/in/foo.cc: In function 'void Out(int)':
/in/foo.cc:41:21: error: 'putchar' was not declared in this scope
 if(a<0) {putchar('-'); a=-a;}
                     ^
/in/foo.cc:43:17: error: 'putchar' was not declared in this scope
 putchar(a%10+'0');
                 ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:64:19: error: 'scanf' was not declared in this scope
 scanf("%d%d",&n,&m);
                   ^
/in/foo.cc:65:5: error: 'i' was not declared in this scope
 FOR(i,1,n) scanf("%d%d%d",&a[i][0],&a[i][1],&a[i][2]);
     ^
/in/foo.cc:65:10: error: 'FOR' was not declared in this scope
 FOR(i,1,n) scanf("%d%d%d",&a[i][0],&a[i][1],&a[i][2]);
          ^
/in/foo.cc:74:18: error: 'printf' was not declared in this scope
 printf("%d\n",ans);
                  ^

信息

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