Problem maximum
User lucasl
Submission Time 2025-01-03 15:35:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

maximum.cpp:5:8: error: cannot declare ‘::main’ to be a global variable
5 | signed main{
| ^~~~
maximum.cpp:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
maximum.cpp:6:2: note: in expansion of macro ‘int’
6 | int a, b
| ^~~
maximum.cpp:3:13: error: expected ‘}’ before ‘long’
3 | #define int long long
| ^~~~
maximum.cpp:6:2: note: in expansion of macro ‘int’
6 | int a, b
| ^~~
maximum.cpp:5:12: note: to match this ‘{’
5 | signed main{
| ^
maximum.cpp:8:2: error: expected unqualified-id before ‘if’
8 | if (a > b){cout << a;}
| ^~
maximum.cpp:9:2: error: expected unqualified-id before ‘else’
9 | else if (b > a){cout << b;}
| ^~~~
maximum.cpp:11:1: error: expected declaration before ‘}’ token
11 | }
| ^