Borderou de evaluare (job #2023800)

Utilizator EuAlexOtaku Hikikomori EuAlex Data 19 septembrie 2017 15:25:50
Problema Alpin Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void dfs(int, int)’: user.cpp:25:34: error: ‘curx’ was not declared in this scope if(v[newx][newy] < v[curx][cury] && dp[newx][newy] == dp[x][y] - 1) { ^ user.cpp:25:40: error: ‘cury’ was not declared in this scope if(v[newx][newy] < v[curx][cury] && dp[newx][newy] == dp[x][y] - 1) { ^ user.cpp: In function ‘int main()’: user.cpp:51:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < cells.size(); ++ i) { ^ user.cpp:35:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("alpin.in", "r", stdin); ^ user.cpp:36:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("alpin.out", "w", stdout); ^ user.cpp:39:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:43:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &v[i][j]); ^

Ceva nu functioneaza?