Problem helloworld
User wrizz69
Submission Time 2024-04-05 15:31:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

helloworld.cpp:10:8: error: ‘pi’ was not declared in this scope
10 | vector<pi>edges;
| ^~
helloworld.cpp:10:10: error: template argument 1 is invalid
10 | vector<pi>edges;
| ^
helloworld.cpp:10:10: error: template argument 2 is invalid
helloworld.cpp:11:1: error: ‘str’ does not name a type; did you mean ‘std’?
11 | str instr;
| ^~~
| std
helloworld.cpp:86:5: error: ‘int node::query(int, int)’ cannot be overloaded with ‘int node::query(int, int)’
86 | int query(int a, int b){
| ^~~~~
helloworld.cpp:42:5: note: previous declaration ‘int node::query(int, int)’
42 | int query(int x, int y){
| ^~~~~
helloworld.cpp:148:1: error: expected ‘}’ at end of input
148 | }
| ^
helloworld.cpp:15:13: note: to match this ‘{’
15 | struct node {
| ^
helloworld.cpp: In member function ‘int node::query(int, int)’:
hellow