Problem topsilver
User King6767
Submission Time 2026-06-26 14:39:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

topsilver.cpp: In function ‘int main()’:
topsilver.cpp:6:11: error: expected initializer before ‘&’ token
6 | int X & Y ;cin>> X & Y;
| ^
topsilver.cpp:6:22: error: ‘X’ was not declared in this scope
6 | int X & Y ;cin>> X & Y;
| ^
topsilver.cpp:6:26: error: ‘Y’ was not declared in this scope
6 | int X & Y ;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: ‘else’ without a previous ‘if’
10 | else if (Y <= X);
| ^~~~
topsilver.cpp:11:15: error: ‘wong’ was not declared in this scope; did you mean ‘long’?
11 | { cout << wong wong;<