记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:8:19: error: 'a' was not declared in this scope
     scanf("%d%d",&a,&b);
                   ^
foo.cc:8:22: error: 'b' was not declared in this scope
     scanf("%d%d",&a,&b);
                      ^
foo.cc:9:5: error: 'node' was not declared in this scope
     node *A=getnew(a);
     ^~~~
foo.cc:9:11: error: 'A' was not declared in this scope
     node *A=getnew(a);
           ^
foo.cc:9:13: error: 'getnew' was not declared in this scope
     node *A=getnew(a);
             ^~~~~~
foo.cc:9:13: note: suggested alternative: 'getw'
     node *A=getnew(a);
             ^~~~~~
             getw
foo.cc:10:11: error: 'B' was not declared in this scope
     node *B=getnew(b);
           ^
foo.cc:11:9: error: 'connect' was not declared in this scope
         connect(A,B);
         ^~~~~~~
foo.cc:12:9: error: 'cut' was not declared in this scope
         cut(A,B);
         ^~~
foo.cc:12:9: note: suggested alternative: 'putw'
         cut(A,B);
         ^~~
         putw
foo.cc:14:19: error: 'query' was not declared in this scope
     printf("%d\n",query(A,B));
                   ^~~~~
foo.cc: At global scope:
foo.cc:17:1: error: expected declaration before '}' token
 }
 ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1000 测试用:A+B Problem(学生不用做此题)
语言
C++
递交时间
2021-11-28 16:49:49
评测时间
2021-11-28 16:49:49
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes