Borderou de evaluare (job #2942787)

Utilizator Anastasia7Anastasia Anastasia7 Data 20 noiembrie 2022 01:40:32
Problema Easygraph Status done
Runda Arhiva ICPC Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:9:6: error: expected identifier before numeric constant 9 | int [15002],cost[15002]; | ^~~~~ main.cpp:9:6: error: expected ']' before numeric constant 9 | int [15002],cost[15002]; | ^~~~~ | ] main.cpp:9:5: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' 9 | int [15002],cost[15002]; | ^ main.cpp:9:5: error: structured binding declaration cannot have type 'int' main.cpp:9:5: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto' main.cpp:9:5: error: empty structured binding declaration main.cpp:9:12: error: expected initializer before ',' token 9 | int [15002],cost[15002]; | ^ main.cpp: In function 'void init()': main.cpp:17:14: error: 'cost' was not declared in this scope 17 | fin>>cost[i]; | ^~~~ main.cpp:18:9: error: 'd' was not declared in this scope 18 | d[i]=0; | ^ main.cpp: In function 'void eliberare()': main.cpp:36:9: error: 'd' was not declared in this scope 36 | d[i] = 0; | ^ main.cpp: In function 'void sortTop()': main.cpp:42:12: error: 'cost' was not declared in this scope 42 | suma = cost[1]; | ^~~~ main.cpp:52:13: error: 'd' was not declared in this scope 52 | d[i] = max(cost[i], 0); | ^ main.cpp:57:12: error: 'd' was not declared in this scope 57 | if(d[u] > suma) | ^ main.cpp:62:16: error: 'd' was not declared in this scope 62 | if(d[u] + cost[v] > d[v]) | ^ Non zero exit status: 1

Ceva nu functioneaza?