Borderou de evaluare (job #3180911)

Utilizator FMI_Mahalu_CiprianMahalu Ciprian FMI_Mahalu_Ciprian Data 6 decembrie 2023 09:42:26
Problema Cablaj Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'double dist(localitate, localitate)': main.cpp:17:12: error: 'sqrt' was not declared in this scope 17 | return sqrt((a.x - b.x) * (a.x - b.x)+(a.y - b.y) * (a.y - b.y)); | ^~~~ main.cpp: In function 'int main()': main.cpp:48:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 48 | if (!vis[j] && d[j] > dist(a[pos], a[j])); | ^~ main.cpp:49:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 49 | { | ^ Non zero exit status: 1

Ceva nu functioneaza?