Problem maximum
User bdaniducks
Submission Time 2026-02-05 18:23:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

maximum.cpp:4:5: error: cannot declare ‘::main’ to be a global variable
4 | int main {
| ^~~~
maximum.cpp:5:2: error: expected primary-expression before ‘int’
5 | int a,b;
| ^~~
maximum.cpp:5:2: error: expected ‘}’ before ‘int’
maximum.cpp:4:10: note: to match this ‘{’
4 | int main {
| ^
maximum.cpp:6:2: error: ‘cin’ does not name a type; did you mean ‘sin’?
6 | cin >> a;
| ^~~
| sin
maximum.cpp:7:2: error: ‘cin’ does not name a type; did you mean ‘sin’?
7 | cin >> b;
| ^~~
| sin
maximum.cpp:9:2: error: expected unqualified-id before ‘if’
9 | if (a > b) {
| ^~
maximum.cpp:12:2: error: expected unqualified-id before ‘else’
12 | else if (b > a) {
| ^~~~
maximum.cpp:16:2: error: expected unqualified-id before ‘return’
16 | return 0;
| ^~~~~~
maximum.cpp:18:1: error: expected d