Borderou de evaluare (job #2558289)

Utilizator CosminMorarMorar Cosmin Andrei CosminMorar Data 26 februarie 2020 14:17:07
Problema Lanterna Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void genPaths()': main.cpp:58:34: error: narrowing conversion of '2.0e+9' from 'double' to 'int' inside { } [-Wnarrowing] nod[i][j] = {2e9, 2e9}; ^ main.cpp:58:34: error: narrowing conversion of '2.0e+9' from 'double' to 'int' inside { } [-Wnarrowing] main.cpp:83:77: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if (nod[j][wNew].time > timeNew || nod[j][wNew].time == timeNew && nod[j][wNew].maxW > maxWNew) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void genResultAndPrint()': main.cpp:100:41: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if (time < tMin || time == tMin && w < wMin) { ~~~~~~~~~~~~~^~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?