Problem boxes3
User WANCH5789W
Submission Time 2026-06-04 11:29:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

boxes3.cpp: In function ‘int main()’:
boxes3.cpp:9:14: error: found ‘:’ in nested-name-specifier, expected ‘::’
9 | cin >> N >> Q:
| ^
| ::
boxes3.cpp:9:13: error: ‘Q’ is not a class, namespace, or enumeration
9 | cin >> N >> Q:
| ^
boxes3.cpp:11:9: error: expected primary-expression before ‘long’
11 | vector <long long> spaces(N+1)
| ^~~~
boxes3.cpp:12:18: error: ‘i’ was not declared in this scope
12 | for (int i = 0; i < Q,i++) {
| ^
boxes3.cpp:21:22: error: ‘spaces’ was not declared in this scope
21 | for (int j = 0; j < spaces[pos].size; j++) {
| ^~~~~~
boxes3.cpp:21:29: error: ‘pos’ was not declared in this scope
21 | for (int j = 0; j < spaces[pos].size; j++) {
| ^~~