Compile Error

foo.cc: In function 'int main()':
foo.cc:6:13: error: 'x' was not declared in this scope
    6 |     int sum=x-y;
      |             ^
foo.cc:6:15: error: 'y' was not declared in this scope; did you mean 'yn'?
    6 |     int sum=x-y;
      |               ^
      |               yn
foo.cc: At global scope:
foo.cc:11:5: error: redefinition of 'int main()'
   11 | int main()
      |     ^~~~
foo.cc:4:5: note: 'int main()' previously defined here
    4 | int main()
      |     ^~~~
foo.cc: In function 'int main()':
foo.cc:15:7: error: 'jdz' was not declared in this scope
   15 |     s=jdz(a,c)+jdz(b,d);
      |       ^~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1702 新能源汽车
语言
C++
递交时间
2023-07-17 15:20:29
评测时间
2023-07-17 15:20:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes