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

Compile Error

maximum.cpp:4:2: error: expected primary-expression before ‘int’
4 | int a,b;
| ^~~
maximum.cpp:4:2: error: expected ‘}’ before ‘int’
maximum.cpp:3:11: note: to match this ‘{’
3 | int maint {
| ^
maximum.cpp:5:2: error: ‘cin’ does not name a type; did you mean ‘sin’?
5 | cin >> a;
| ^~~
| sin
maximum.cpp:6:2: error: ‘cin’ does not name a type; did you mean ‘sin’?
6 | cin >> b;
| ^~~
| sin
maximum.cpp:8:2: error: expected unqualified-id before ‘if’
8 | if (a > b) {
| ^~
maximum.cpp:11:2: error: expected unqualified-id before ‘else’
11 | else if (b > a) {
| ^~~~
maximum.cpp:15:1: error: expected declaration before ‘}’ token
15 | }
| ^