/ Vijos /

记录详情

Compile Error

foo.cc:1:1: error: 'include' does not name a type
    1 | include <cstdio>
      | ^~~~~~~
foo.cc:14:1: error: 'define' does not name a type
   14 | define lowbit(x) ((x)&(-x))
      | ^~~~~~
foo.cc:20:32: error: 'i' does not name a type
   20 | define FOR(i,a,n) for(int i=a; i<=n; ++i)
      |                                ^
foo.cc:20:38: error: expected unqualified-id before '++' token
   20 | define FOR(i,a,n) for(int i=a; i<=n; ++i)
      |                                      ^~
foo.cc:21:31: error: 'i' does not name a type
   21 | define FO(i,a,n) for(int i=a; i<n; ++i)
      |                               ^
foo.cc:21:36: error: expected unqualified-id before '++' token
   21 | define FO(i,a,n) for(int i=a; i<n; ++i)
      |                                    ^~
foo.cc:23:1: error: 'define' does not name a type
   23 | define lch p<<1,l,mid
      | ^~~~~~
foo.cc:28:9: error: 'vector' does not name a type
   28 | typedef vector<int> VI;
      |         ^~~~~~
foo.cc:30:1: error: 'pragma' does not name a type; did you mean '_Pragma'?
   30 | pragma comment(linker, "/STACK:1024000000,1024000000")
      | ^~~~~~
      | _Pragma
foo.cc: In function 'int Scan()':
foo.cc:35:8: error: 'getchar' was not declared in this scope
   35 | if((ch=getchar())=='-') flag=1;
      |        ^~~~~~~
foo.cc:1:1: note: 'getchar' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | include <cstdio>
foo.cc:37:11: error: 'getchar' was not declared in this scope
   37 | while((ch=getchar())>='0'&&ch<='9') res=res*10+(ch-'0');
      |           ^~~~~~~
foo.cc:37:11: note: 'getchar' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
foo.cc: In function 'void Out(int)':
foo.cc:41:10: error: 'putchar' was not declared in this scope; did you mean 'char'?
   41 | if(a<0) {putchar('-'); a=-a;}
      |          ^~~~~~~
      |          char
foo.cc:43:1: error: 'putchar' was not declared in this scope; did you mean 'char'?
   43 | putchar(a%10+'0');
      | ^~~~~~~
      | char
foo.cc: In function 'int main()':
foo.cc:64:1: error: 'scanf' was not declared in this scope
   64 | scanf("%d%d",&n,&m);
      | ^~~~~
foo.cc:65:5: error: 'i' was not declared in this scope
   65 | FOR(i,1,n) scanf("%d%d%d",&a[i][0],&a[i][1],&a[i][2]);
      |     ^
foo.cc:65:1: error: 'FOR' was not declared in this scope
   65 | FOR(i,1,n) scanf("%d%d%d",&a[i][0],&a[i][1],&a[i][2]);
      | ^~~
foo.cc:74:1: error: 'printf' was not declared in this scope
   74 | printf("%d\n",ans);
      | ^~~~~~
foo.cc:74:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1464 积木游戏
语言
C++
递交时间
2023-05-14 16:00:00
评测时间
2023-05-14 16:01:02
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes