Borderou de evaluare (job #2610045)

Utilizator Data 4 mai 2020 01:39:05 Matrice3 done Arhiva de probleme cpp-64 | Vezi sursa 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:33:40: error: lvalue required as left operand of assignment (int)rmq[i][j][0][0]=d[i][j]; ^ main.cpp:40:98: error: lvalue required as left operand of assignment (int)rmq[ii][jj][i][0]=max((int)rmq[ii][jj][i-1][0],(int)rmq[ii-pi/2][jj][i-1][0]); ^ main.cpp:49:98: error: lvalue required as left operand of assignment (int)rmq[ii][jj][0][j]=max((int)rmq[ii][jj][0][j-1],(int)rmq[ii][jj-pj/2][0][j-1]); ^ main.cpp:59:185: error: lvalue required as left operand of assignment (int)rmq[ii][jj][i][j]=max(max((int)rmq[ii][jj][i-1][j-1],(int)rmq[ii-pi/2][jj][i-1][j-1]),max((int)rmq[ii][jj-pj/2][i-1][j-1],(int)rmq[ii-pi/2][jj-pj/2][i-1][j-1])); ^ main.cpp:69:18: error: expected primary-expression before 'int' if(f(int)rmq(l1+mi-1,c1+mi-1,l2,c2)<=mi) ^~~ main.cpp:69:21: error: 'f' was not declared in this scope if(f(int)rmq(l1+mi-1,c1+mi-1,l2,c2)<=mi) ^ main.cpp:69:22: error: expected ')' before 'rmq' if(f(int)rmq(l1+mi-1,c1+mi-1,l2,c2)<=mi) ^~~ Non zero exit status: 1