Problem | maximum |
---|---|
User | lucasl |
Submission Time | 2025-01-03 15:35:01 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
maximum.cpp:5:8: error: cannot declare ‘::main’ to be a global variable
5 | signed main{
| ^~~~
maximum.cpp:6:9: error: ‘a’ was not declared in this scope
6 | cin >> a,b;
| ^
maximum.cpp:6:11: error: ‘b’ was not declared in this scope
6 | cin >> a,b;
| ^
maximum.cpp:6:12: error: expected ‘}’ before ‘;’ token
6 | cin >> a,b;
| ^
maximum.cpp:5:12: note: to match this ‘{’
5 | signed main{
| ^
maximum.cpp:5:8: error: scalar object ‘main’ requires one element in initializer
5 | signed main{
| ^~~~
maximum.cpp:7:2: error: expected unqualified-id before ‘if’
7 | if (a > b){cout << a;}
| ^~
maximum.cpp:8:2: error: expected unqualified-id before ‘else’
8 | else if (b > a){cout << b;}
| ^~~~
maximum.cpp:10:1: error: expected declaration before ‘}’ tok