Problem wronganswer
User xragon
Submission Time 2024-12-07 09:42:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

wronganswer.cpp:5:8: error: cannot declare ‘::main’ to be a global variable
5 | signed main{
| ^~~~
wronganswer.cpp:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
wronganswer.cpp:6:2: note: in expansion of macro ‘int’
6 | int x,z;
| ^~~
wronganswer.cpp:3:13: error: expected ‘}’ before ‘long’
3 | #define int long long
| ^~~~
wronganswer.cpp:6:2: note: in expansion of macro ‘int’
6 | int x,z;
| ^~~
wronganswer.cpp:5:12: note: to match this ‘{’
5 | signed main{
| ^
wronganswer.cpp:7:2: error: ‘cin’ does not name a type; did you mean ‘sin’?
7 | cin >> x >> z;
| ^~~
| sin
wronganswer.cpp:8:2: error: expected unqualified-id before ‘if’
8 | if (x+z == 0){
| ^~
wronganswer.cpp:11:2: error: expected unqualified-id before ‘else’