Borderou de evaluare (job #624630)

Utilizator avatar corbean_tudor_ciprian CORBEAN TUDOR CIPRIAN corbean_tudor_ciprian IP ascuns
Problemă Rucsac fractionar Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 11 ian. 2022 20:25:16 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:26:5: error: 'long' specified with 'float' 26 | long float sumcif=0; | ^~~~ main.cpp:54:9: error: 'sumfin' was not declared in this scope; did you mean 'sumcif'? 54 | sumfin+=v2[i]; | ^~~~~~ | sumcif main.cpp:58:9: error: 'sumfin' was not declared in this scope; did you mean 'sumcif'? 58 | sumfin+=k*v3[i]; | ^~~~~~ | sumcif main.cpp:62:32: error: 'sumfin' was not declared in this scope; did you mean 'sumcif'? 62 | g<<fixed<<setprecision(2)<<sumfin; | ^~~~~~ | sumcif main.cpp:26:16: warning: unused variable 'sumcif' [-Wunused-variable] 26 | long float sumcif=0; | ^~~~~~