Problem wires
User Kiameimon
Submission Time 2023-12-22 14:06:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

wires.cpp: In function ‘int press(int, int)’:
wires.cpp:5:8: error: ‘num_press’ was not declared in this scope
5 | if (++num_press > P){
| ^~~~~~~~~
wires.cpp:5:20: error: ‘P’ was not declared in this scope
5 | if (++num_press > P){
| ^
wires.cpp:6:12: error: ‘err1’ was not declared in this scope
6 | print_WA(err1);
| ^~~~
wires.cpp:6:3: error: ‘print_WA’ was not declared in this scope; did you mean ‘printf’?
6 | print_WA(err1);
| ^~~~~~~~
| printf
wires.cpp:8:19: error: ‘N’ was not declared in this scope
8 | if (x < 1 || x > N || y < 1 || y > N){
| ^
wires.cpp:9:12: error: ‘err2’ was not declared in this scope
9 | print_WA(err2);
| ^~~~
wires.cpp:9:3: error: ‘print_WA’ was not declared in this scope; did you mean ‘printf’?
9 | print_WA(err2);
| ^