Problem simp
User afzal
Submission Time 2025-08-18 16:08:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

simp.cpp: In function ‘int main()’:
simp.cpp:13:9: error: ‘x1’ was not declared in this scope; did you mean ‘x’?
13 | cin >> x1 >> y1;
| ^~
| x
simp.cpp:14:9: error: ‘x2’ was not declared in this scope; did you mean ‘x’?
14 | cin >> x2 >> y2;
| ^~
| x
simp.cpp:14:15: error: ‘y2’ was not declared in this scope; did you mean ‘y’?
14 | cin >> x2 >> y2;
| ^~
| y
simp.cpp:20:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
20 | if (y1 < ky or y2 <kx){
| ^~
simp.cpp: At global scope:
simp.cpp:24:5: error: expected unqualified-id before ‘if’
24 | if (pos == 1){
| ^~
simp.cpp:27:3: error: expected unqualified-id before ‘else’
27 | else{
| ^~~~
simp.cpp:29:4: error: expected declaratio