Problem squidzofrenzic
User Kishan
Submission Time 2023-06-13 14:20:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

squidzofrenzic.cpp:3:7: error: expected nested-name-specifier before ‘long’
3 | using long long = ll;
| ^~~~
squidzofrenzic.cpp: In function ‘int valid(int)’:
squidzofrenzic.cpp:7:25: error: ‘n’ was not declared in this scope
7 | for (int i = 0; i < n; i++) {
| ^
squidzofrenzic.cpp:8:13: error: ‘v’ was not declared in this scope
8 | if (v[i] > x) {
| ^
squidzofrenzic.cpp:12:19: error: ‘v’ was not declared in this scope
12 | if (cur + v[i] > x) {
| ^
squidzofrenzic.cpp:20:15: error: ‘m’ was not declared in this scope
20 | if (res < m) {
| ^
squidzofrenzic.cpp: In function ‘int main()’:
squidzofrenzic.cpp:45:12: error: ‘l’ was not declared in this scope
45 | while (l < r) {
| ^