Borderou de evaluare (job #2967951)

Utilizator lolismekAlex Jerpelea lolismek Data 20 ianuarie 2023 14:27:30
Problema Sumzero Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:38:26: error: no matching function for call to 'AINT::Node::Node()' 38 | Node seg[4 * NMAX + 1]; | ^ main.cpp:30:9: note: candidate: 'AINT::Node::Node(int, int)' 30 | Node(int _L, int _R){ | ^~~~ main.cpp:30:9: note: candidate expects 2 arguments, 0 provided main.cpp:24:12: note: candidate: 'AINT::Node::Node(const AINT::Node&)' 24 | struct Node{ | ^~~~ main.cpp:24:12: note: candidate expects 1 argument, 0 provided main.cpp:24:12: note: candidate: 'AINT::Node::Node(AINT::Node&&)' main.cpp:24:12: note: candidate expects 1 argument, 0 provided main.cpp: In function 'AINT::Node AINT::merge(AINT::Node, AINT::Node)': main.cpp:42:5: warning: no return statement in function returning non-void [-Wreturn-type] 42 | } | ^ main.cpp: In function 'void AINT::build(int, int, int)': main.cpp:49:17: error: 'dpPrefix' was not declared in this scope 49 | dpPrefix[0] = 1; | ^~~~~~~~ main.cpp:50:17: error: 'dpSufix' was not declared in this scope 50 | dpSufix[0] = 1; | ^~~~~~~ main.cpp: In function 'AINT::Node AINT::query(int, int, int, int, int)': main.cpp:69:14: error: no matching function for call to 'AINT::Node::Node()' 69 | Node node; | ^~~~ main.cpp:30:9: note: candidate: 'AINT::Node::Node(int, int)' 30 | Node(int _L, int _R){ | ^~~~ main.cpp:30:9: note: candidate expects 2 arguments, 0 provided main.cpp:24:12: note: candidate: 'AINT::Node::Node(const AINT::Node&)' 24 | struct Node{ | ^~~~ main.cpp:24:12: note: candidate expects 1 argument, 0 provided main.cpp:24:12: note: candidate: 'AINT::Node::Node(AINT::Node&&)' main.cpp:24:12: note: candidate expects 1 argument, 0 provided main.cpp: In function 'int main()': main.cpp:95:5: error: 'mp' was not declared in this scope; did you mean 'sp'? 95 | mp[0] = 0; | ^~ | sp main.cpp:111:26: error: 'query' was not declared in this scope; did you mean 'AINT::query'? 111 | AINT::Node tmp = query(1, 1, n, L, R); | ^~~~~ | AINT::query main.cpp:62:10: note: 'AINT::query' declared here 62 | Node query(int nod, int st, int dr, int qSt, int qDr){ | ^~~~~ Non zero exit status: 1

Ceva nu functioneaza?