dungeons.cpp: In function 'long long int simulate(int, int)':
dungeons.cpp:91:29: error: 'cs' was not declared in this scope; did you mean 'ss'?
91 | if(ss[i+1]<=cs) continue;
| ^~
| ss
dungeons.cpp:94:32: error: 'u' was not declared in this scope
94 | if(nxt[u][j][i+sn]==N||nxt[u][j][i+2*sn]<=cs) continue;
| ^
dungeons.cpp:94:67: error: 'cs' was not declared in this scope; did you mean 'ss'?
94 | if(nxt[u][j][i+sn]==N||nxt[u][j][i+2*sn]<=cs) continue;
| ^~
| ss
dungeons.cpp:95:25: error: 'cs' was not declared in this scope; did you mean 'ss'?
95 | cs+=nxt[u][j][i];
| ^~
| ss
dungeons.cpp:95:33: error: 'u' was not declared in this scope
95 | cs+=nxt[u][j][i];
| ^
dungeons.cpp:98:24: error: 'u' was not declared in this scope
98 | if(nxt[u][0][i+sn]==N){
| ^
dungeons.cpp:99:33: error: 'cs' was not declared in this scope; did you mean 'ss'?
99 | if(s[u]>cs) cs+=p[u];
| ^~
| ss
dungeons.cpp:101:32: error: 'cs' was not declared in this scope; did you mean 'ss'?
101 | return cs;
| ^~
| ss
dungeons.cpp:103:33: error: 'cs' was not declared in this scope; did you mean 'ss'?
103 | if(s[u]>cs) {
| ^~
| ss
dungeons.cpp:112:20: error: 'u' was not declared in this scope
112 | if(u==N) return cs;
| ^
dungeons.cpp:112:33: error: 'cs' was not declared in this scope; did you mean 'ss'?
112 | if(u==N) return cs;
| ^~
| ss
dungeons.cpp:114:27: error: 'cs' was not declared in this scope; did you mean 'ss'?
114 | return (long long)cs+pth(u);
| ^~
| ss
dungeons.cpp:114:34: error: 'u' was not declared in this scope
114 | return (long long)cs+pth(u);
| ^