Problem | kthpar |
---|---|
User | zyh255 |
Submission Time | 2022-12-27 15:19:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
kthpar.cpp:7:1: error: expected initializer before ‘long’
7 | long long ans;
| ^~~~
kthpar.cpp: In function ‘void dfs(int, int, int)’:
kthpar.cpp:15:13: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
15 | ans += st[st.size()-k];
| ^~~
| abs
kthpar.cpp: In function ‘int32_t main()’:
kthpar.cpp:33:16: error: ‘k’ was not declared in this scope
33 | cin >> k;
| ^
kthpar.cpp:34:9: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
34 | ans = 0;
| ^~~
| abs