Problem dquery
User zyq69
Submission Time 2024-02-23 00:13:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dquery.cpp: In function ‘int32_t main()’:
dquery.cpp:39:3: error: ‘v’ was not declared in this scope
39 | v.push_back(inp1);
| ^
dquery.cpp:47:2: error: ‘lptr’ was not declared in this scope
47 | lptr = rptr = 0;
| ^~~~
dquery.cpp:47:9: error: ‘rptr’ was not declared in this scope
47 | lptr = rptr = 0;
| ^~~~
dquery.cpp:48:2: error: ‘cntt’ was not declared in this scope; did you mean ‘cnt’?
48 | cntt++;
| ^~~~
| cnt
dquery.cpp:49:6: error: ‘v’ was not declared in this scope
49 | cnt[v[0]]++;
| ^
dquery.cpp:75:3: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
75 | ans[c] = cntt;
| ^~~
| abs
dquery.cpp:78:11: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
78 | cout << ans[a] << '\n';
| ^~~
| abs