Borderou de evaluare (job #1388084)

Utilizator theprdvtheprdv theprdv Data 15 martie 2015 07:22:03
Problema Muzeu Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void LEE()’: user.cpp:34:131: error: second operand to the conditional operator is of type ‘void’, but the third operand is neither a throw-expression nor of type ‘void’ i - 1 > 0 && (M[i - 1][j] == -1 || M[i][j] + 1 < M[i - 1][j]) ? M[i - 1][j] = M[i][j] + 1, way.push(make_pair(i - 1, j)) : i = i; ^ user.cpp:35:132: error: second operand to the conditional operator is of type ‘void’, but the third operand is neither a throw-expression nor of type ‘void’ i + 1 <= n && (M[i + 1][j] == -1 || M[i][j] + 1 < M[i + 1][j]) ? M[i + 1][j] = M[i][j] + 1, way.push(make_pair(i + 1, j)) : i = i; ^ user.cpp:36:131: error: second operand to the conditional operator is of type ‘void’, but the third operand is neither a throw-expression nor of type ‘void’ j - 1 > 0 && (M[i][j - 1] == -1 || M[i][j] + 1 < M[i][j - 1]) ? M[i][j - 1] = M[i][j] + 1, way.push(make_pair(i, j - 1)) : i = i; ^ user.cpp:37:132: error: second operand to the conditional operator is of type ‘void’, but the third operand is neither a throw-expression nor of type ‘void’ j + 1 <= n && (M[i][j + 1] == -1 || M[i][j] + 1 < M[i][j + 1]) ? M[i][j + 1] = M[i][j] + 1, way.push(make_pair(i, j + 1)) : i = i; ^

Ceva nu functioneaza?