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

Compile Error

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:11: note: to match this ‘{’
4 | int maint {
| ^
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:1: error: expected declaration before ‘}’ token
16 | }
| ^