Problem slimes
User shenshiqi
Submission Time 2026-01-06 07:20:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

slimes.cpp: In function ‘int main()’:
slimes.cpp:5:5: error: expected initializer before ‘n’
5 | ll n;
| ^
slimes.cpp:6:8: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
6 | cin >>n;
| ^
| yn
slimes.cpp:11:5: error: expected initializer before ‘cnt’
11 | ll cnt = 1;
| ^~~
slimes.cpp:12:10: error: expected ‘;’ before ‘i’
12 | for (ll i = 1; i < s.length(); ++i){
| ^
slimes.cpp:12:10: error: ‘i’ was not declared in this scope
slimes.cpp:12:31: error: expected ‘)’ before ‘;’ token
12 | for (ll i = 1; i < s.length(); ++i){
| ~ ^
| )
slimes.cpp:12:35: error: ‘i’ was not declared in this scope
12 | for (ll i = 1; i < s.length(); ++i){
| ^
slimes.cpp:16:10: error: ‘cnt’ was not declared in this scope; did