Borderou de evaluare (job #2696014)

Utilizator StefanaArinaStefana Arina Tabusca StefanaArina Data 15 ianuarie 2021 01:33:40
Problema Catun Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:15:12: error: conflicting declaration 'std::ifstream f' ifstream f ("catun.in"); ^ main.cpp:13:26: note: previous declaration as 'int f [36001]' int n, m, k, dist[NMAX], f[NMAX]; ^ main.cpp: In function 'int main()': main.cpp:22:7: error: invalid operands of types 'int [36001]' and 'int' to binary 'operator>>' f >> n >> m >> k; ~~^~~~ main.cpp:25:11: error: invalid operands of types 'int [36001]' and 'int' to binary 'operator>>' f >> fort; ~~^~~~~~~ main.cpp:32:11: error: invalid operands of types 'int [36001]' and 'int' to binary 'operator>>' f >> a >> b >> c; ~~^~~~ main.cpp:54:63: warning: suggest parentheses around '&&' within '||' [-Wparentheses] or dist[node_to_vis] == dist[current_node] + cost and f[current_node] < f[node_to_vis]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:20:18: warning: unused variable 'i' [-Wunused-variable] int a, b, c, i, fort; ^ Non zero exit status: 1

Ceva nu functioneaza?