| Problem | topsilver |
|---|---|
| User | King6767 |
| Submission Time | 2026-06-26 14:45:24 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
cc1plus: error: ‘::main’ must return ‘int’
topsilver.cpp: In function ‘int main()’:
topsilver.cpp:6:10: error: expected initializer before ‘-=’ token
6 | int Y-=X;cin>> X & Y;
| ^~
topsilver.cpp:6:20: error: ‘X’ was not declared in this scope
6 | int Y-=X;cin>> X & Y;
| ^
topsilver.cpp:6:24: error: ‘Y’ was not declared in this scope
6 | int Y-=X;cin>> X & Y;
| ^
topsilver.cpp:8:9: error: expected ‘)’ before numeric constant
8 | if(Y 1 <= X)
| ~ ^~
| )
topsilver.cpp:9:15: error: ‘top’ was not declared in this scope
9 | { cout << top spirit ;
| ^~~
topsilver.cpp:10:5: error: expected ‘}’ before ‘else’
10 | else if (Y <= X)
| ^~~~
topsilver.cpp:9:5: note: to match this ‘{’
9 | { cout << top spirit ;
|