Problem jamestreet
User oolimry
Submission Time 2023-07-17 16:24:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

grader.cpp: In function ‘int run_test(int)’:
grader.cpp:9:15: error: ‘x’ was not declared in this scope
9 | int b = send(x);
| ^
jame.cpp:2:6: error: ambiguating new declaration of ‘void send(int)’
2 | void send(int x){ return x; }
| ^~~~
In file included from jame.cpp:1:
jame.h:2:5: note: old declaration ‘int send(int)’
2 | int send(int x);
| ^~~~
jame.cpp: In function ‘void send(int)’:
jame.cpp:2:26: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
2 | void send(int x){ return x; }
| ^