Problem maximum
User boomphcoding
Submission Time 2024-02-05 12:23:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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