Borderou de evaluare (job #2367189)

Utilizator radugheoRadu Mihai Gheorghe radugheo Data 5 martie 2019 09:20:10
Problema Lapte Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'bool check(int)': main.cpp:13:14: error: 'j' was not declared in this scope for (j=0; j<=L; j++){ ^ main.cpp:14:13: error: 'd' was not declared in this scope d[i][j] = -1; ^ main.cpp:17:10: error: 'j' was not declared in this scope for (j=0; j<=min (L, (t-a[1]*j)/b[1])){ ^ main.cpp:17:27: error: 't' was not declared in this scope for (j=0; j<=min (L, (t-a[1]*j)/b[1])){ ^ main.cpp:17:42: error: expected ';' before ')' token for (j=0; j<=min (L, (t-a[1]*j)/b[1])){ ^ main.cpp:18:9: error: 'd' was not declared in this scope d[1][j] = (t-a[1]*j)/b[1]; ^ main.cpp:22:14: error: 'j' was not declared in this scope for (j=0; j<=min (L, (t-a[i]*j)/b[i])){ ^ main.cpp:22:31: error: 't' was not declared in this scope for (j=0; j<=min (L, (t-a[i]*j)/b[i])){ ^ main.cpp:22:46: error: expected ';' before ')' token for (j=0; j<=min (L, (t-a[i]*j)/b[i])){ ^ main.cpp:26:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ main.cpp: In function 'int main()': main.cpp:45:15: error: 'path' was not declared in this scope path (n, L); ^ Non zero exit status: 1

Ceva nu functioneaza?