Problem 1609
User Potato3218
Submission Time 2023-01-01 17:29:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

1609.cpp:42:8: error: ‘Node’ was not declared in this scope; did you mean ‘node’?
42 | vector<Node*> nodes;
| ^~~~
| node
1609.cpp:42:13: error: template argument 1 is invalid
42 | vector<Node*> nodes;
| ^
1609.cpp:42:13: error: template argument 2 is invalid
1609.cpp: In function ‘int main()’:
1609.cpp:45:41: error: request for member ‘push_back’ in ‘nodes’, which is of non-class type ‘int’
45 | for(int i = 0; i < 50000; i++)nodes.push_back(new node(0, n-1));
| ^~~~~~~~~
1609.cpp:46:19: error: ‘begin’ was not declared in this scope
46 | for(auto itr: nodes) itr-> update(5,10);
| ^~~~~
1609.cpp:46:19: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from 1609.cpp:1:
/usr/include/c++/9/valarray:1224:5: note: ‘