Borderou de evaluare (job #1179630)

Utilizator alexandrab0507Alexandra Beldica alexandrab0507 Data 28 aprilie 2014 23:02:08
Problema Jocul Flip 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:24:13: error: expected ‘;’ before ‘if’ if (mat[i][j] < 0) { ^ user.cpp:31:13: error: ‘var’ was not declared in this scope var nrNegatives = 0, normalSum = 0, flipSum = 0; ^ user.cpp:31:17: error: expected ‘;’ before ‘nrNegatives’ var nrNegatives = 0, normalSum = 0, flipSum = 0; ^ user.cpp:33:17: error: ‘normalSum’ was not declared in this scope normalSum += mat[i][j]; ^ user.cpp:34:17: error: ‘flipSum’ was not declared in this scope flipSum += (-mat[i][j]); ^ user.cpp:37:21: error: ‘nrNegatives’ was not declared in this scope nrNegatives++; ^ user.cpp:41:17: error: ‘nrNegatives’ was not declared in this scope if (nrNegatives > n) { ^ user.cpp:42:31: error: ‘normalSum’ was not declared in this scope currentSum -= normalSum; ^ user.cpp:43:31: error: ‘flipSum’ was not declared in this scope currentSum += flipSum; ^ user.cpp:48:13: error: ‘var’ was not declared in this scope var nrNegatives = 0, normalSum = 0, flipSum = 0; ^ user.cpp:48:17: error: expected ‘;’ before ‘nrNegatives’ var nrNegatives = 0, normalSum = 0, flipSum = 0; ^ user.cpp:50:17: error: ‘normalSum’ was not declared in this scope normalSum += mat[i][j]; ^ user.cpp:51:17: error: ‘flipSum’ was not declared in this scope flipSum += (-mat[i][j]); ^ user.cpp:54:21: error: ‘nrNegatives’ was not declared in this scope nrNegatives++; ^ user.cpp:58:17: error: ‘nrNegatives’ was not declared in this scope if (nrNegatives > n) { ^ user.cpp:59:31: error: ‘normalSum’ was not declared in this scope currentSum -= normalSum; ^ user.cpp:60:31: error: ‘flipSum’ was not declared in this scope

Ceva nu functioneaza?