Borderou de evaluare (job #1818536)

Utilizator mihaiadelinamihai adelina mihaiadelina Data 29 noiembrie 2016 13:39:20
Problema Problema rucsacului Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:4:1: error: ‘ifstrean’ does not name a type ifstrean fin ("rucsac.in"); ^ user.cpp: In function ‘void citire()’: user.cpp:15:5: error: ‘fin’ was not declared in this scope fin >> n >> G; ^ user.cpp:18:16: error: ‘a’ was not declared in this scope fin >> a[i].c >> a[i].c; ^ user.cpp: In function ‘void Dinamica()’: user.cpp:24:13: error: no match for ‘operator[]’ (operand types are ‘obiect’ and ‘int’) c[0][i] = 0; ^ user.cpp:26:13: error: no match for ‘operator[]’ (operand types are ‘obiect’ and ‘int’) c[j][0] = 0; ^ user.cpp:29:17: error: ‘a’ was not declared in this scope if (a[i].g > j) ^ user.cpp:30:21: error: no match for ‘operator[]’ (operand types are ‘obiect’ and ‘int’) c[i][j] = c[i - 1][j]; ^ user.cpp:30:35: error: no match for ‘operator[]’ (operand types are ‘obiect’ and ‘int’) c[i][j] = c[i - 1][j]; ^ user.cpp:31:22: error: no match for ‘operator[]’ (operand types are ‘obiect’ and ‘int’) else c[i][j] = max (c[i - 1][j], a[i].c + c[i - 1][j - a[i].g) ^ user.cpp:31:41: error: no match for ‘operator[]’ (operand types are ‘obiect’ and ‘int’) else c[i][j] = max (c[i - 1][j], a[i].c + c[i - 1][j - a[i].g) ^ user.cpp:31:74: error: expected ‘]’ before ‘)’ token else c[i][j] = max (c[i - 1][j], a[i].c + c[i - 1][j - a[i].g) ^ user.cpp:32:1: error: expected ‘;’ before ‘}’ token } ^ user.cpp: In function ‘int main()’: user.cpp:36:5: error: ‘cout’ was not declared in this scope cout << "Hello world!" << endl; ^

Ceva nu functioneaza?