Problem topsilver
User yq
Submission Time 2026-06-26 13:00:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

topsilver.cpp: In function ‘int main()’:
topsilver.cpp:5:11: error: expected ‘;’ before ‘string’
5 | cin>>x>>y
| ^
| ;
6 | string a = "top sliver", b= "womp womp", c= "lucky";
| ~~~~~~
topsilver.cpp:8:9: error: ‘a’ was not declared in this scope
8 | cout<<a; }
| ^
topsilver.cpp:10:10: error: ‘b’ was not declared in this scope
10 | cout<<b;}
| ^
topsilver.cpp:11:15: error: ‘c’ was not declared in this scope
11 | else cout<<c;
| ^