Borderou de evaluare (job #1923533)

Utilizator cmalexAlex Hagiu cmalex Data 11 martie 2017 14:47:15
Problema Insule Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘bool checkNode(std::pair<int, int>)’: user.cpp:20:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if (myMap[x][y] == -1) ^ user.cpp: In function ‘int Lee()’: user.cpp:33:47: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive] return myMap[now.first][now.second]; ^ user.cpp:37:73: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if (checkNode(after) && myMap[after.first][after.second] <= 1) { ^ user.cpp:38:58: error: incompatible types in assignment of ‘int*’ to ‘int [1]’ myMap[after.first][after.second] = myMap[now.first][now.second] + 1; ^ user.cpp: In function ‘void findCurentIsland(int, int, int)’: user.cpp:52:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if (myMap[newI][newJ] == n) ^ user.cpp:53:5: error: expected primary-expression before ‘}’ token } ^ user.cpp:53:5: error: expected ‘;’ before ‘}’ token user.cpp: In function ‘int main()’: user.cpp:70:25: error: incompatible types in assignment of ‘int’ to ‘int [1]’ myMap[i][j] = num2 % 10; ^ user.cpp:79:31: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive] int n = myMap[i][j]; ^ user.cpp:76:9: warning: unused variable ‘nr’ [-Wunused-variable] int nr, ng, nb, lg; //numar insule ^ user.cpp:76:13: warning: unused variable ‘ng’ [-Wunused-variable] int nr, ng, nb, lg; //numar insule ^ user.cpp:76:17: warning: unused variable ‘nb’ [-Wunused-variable] int nr, ng, nb, lg; //numar insule ^ user.cpp:76:21: warning: unused variable ‘lg’ [-Wunused-variable] int nr, ng, nb, lg; //numar insule ^

Ceva nu functioneaza?