Borderou de evaluare (job #1753296)

Utilizator iulianrotaruRotaru Gheorghe-Iulian iulianrotaru Data 6 septembrie 2016 12:23:47
Problema Kgraf Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:42:28: error: invalid initialization of reference of type ‘int&’ from expression of type ‘long long int’ getMax(dp[itr.first][j], oldDp[nod][j] - itr.second); ^ user.cpp:16:6: error: in passing argument 1 of ‘void getMax(int&, int)’ void getMax(int &a, int b) { ^ user.cpp:43:32: error: invalid initialization of reference of type ‘int&’ from expression of type ‘long long int’ getMax(dp[itr.first][j + 1], oldDp[nod][j]); ^ user.cpp:16:6: error: in passing argument 1 of ‘void getMax(int&, int)’ void getMax(int &a, int b) { ^ user.cpp:44:35: error: invalid initialization of reference of type ‘int&’ from expression of type ‘long long int’ getMax(oldDp[itr.first][j + 1], oldDp[nod][j] + itr.second); ^ user.cpp:16:6: error: in passing argument 1 of ‘void getMax(int&, int)’ void getMax(int &a, int b) { ^ user.cpp:45:31: error: invalid initialization of reference of type ‘int&’ from expression of type ‘long long int’ getMax(oldDp[itr.first][j], oldDp[nod][j]); ^ user.cpp:16:6: error: in passing argument 1 of ‘void getMax(int&, int)’ void getMax(int &a, int b) { ^ user.cpp:51:25: error: invalid initialization of reference of type ‘int&’ from expression of type ‘long long int’ getMax(mx, oldDp[i][k]); ^ user.cpp:16:6: error: in passing argument 1 of ‘void getMax(int&, int)’ void getMax(int &a, int b) { ^

Ceva nu functioneaza?