Borderou de evaluare (job #2970235)

Utilizator Luka77Anastase Luca George Luka77 Data 24 ianuarie 2023 17:57:04
Problema Symmetricgraph2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:30:1: error: expected initializer before 'int' 30 | int flux[NMAX], dist[NMAX], coresp[NMAX]; | ^~~ main.cpp: In function 'void FindDist()': main.cpp:43:5: error: 'dist' was not declared in this scope 43 | dist[1] = 1; | ^~~~ main.cpp: In function 'void FindTrees()': main.cpp:77:20: error: 'dist' was not declared in this scope 77 | if(dist[new_node.node] != dist[curr_node]) | ^~~~ main.cpp:98:20: error: 'dist' was not declared in this scope 98 | if(dist[new_node.node] != dist[curr_node]) | ^~~~ main.cpp: In function 'void FindCoresp()': main.cpp:124:20: error: 'dist' was not declared in this scope 124 | if(dist[new_node.node] != dist[curr_node]) | ^~~~ main.cpp:143:9: error: 'coresp' was not declared in this scope 143 | coresp[curr_node1] = curr_node2; | ^~~~~~ main.cpp:147:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<muchie>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 147 | for(int i = 0; i < tree1[curr_node1].size(); ++ i) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void CalculateFlux()': main.cpp:175:17: error: 'flux' was not declared in this scope 175 | flux[new_node.node] = new_node.cap; | ^~~~ main.cpp:193:17: error: 'flux' was not declared in this scope 193 | flux[coresp[new_node.node]] = min(flux[coresp[new_node.node]], new_node.cap); | ^~~~ main.cpp:193:22: error: 'coresp' was not declared in this scope 193 | flux[coresp[new_node.node]] = min(flux[coresp[new_node.node]], new_node.cap); | ^~~~~~ main.cpp:213:20: error: 'dist' was not declared in this scope 213 | if(dist[new_node.node] != dist[curr_node]) | ^~~~ main.cpp:220:21: error: 'flux' was not declared in this scope 220 | flux[curr_node] = min(flux[curr_node], new_node.cap); | ^~~~ main.cpp:227:16: error: 'flux' was not declared in this scope 227 | ans += flux[x.node]; | ^~~~ main.cpp: In function 'int main()': main.cpp:248:17: error: 'M' was not declared in this scope 248 | fin >> N >> M; | ^ Non zero exit status: 1

Ceva nu functioneaza?