Borderou de evaluare (job #1612871)

Utilizator iulian_f2kGuraliuc Iulian iulian_f2k Data 25 februarie 2016 08:11:01
Problema Joc13 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int dinamica(int, int, int, int)’: user.cpp:5:13: error: ‘INT_MAX’ was not declared in this scope #define inf INT_MAX/2 ^ user.cpp:36:29: note: in expansion of macro ‘inf’ if(D[l][c][intr][k] != -inf) ^ user.cpp:49:11: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if(intr == dr) //s-a intrat de la dreapta ^ user.cpp:59:11: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if(intr == dr) //s-a intrat de la dreapta ^ user.cpp: In function ‘void initializare()’: user.cpp:5:13: error: ‘INT_MAX’ was not declared in this scope #define inf INT_MAX/2 ^ user.cpp:81:50: note: in expansion of macro ‘inf’ D[0][i][d][k] = D[1][i][d][k] = -inf; ^ user.cpp:73:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("joc13.in", "rt", stdin); ^ user.cpp:74:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("joc13.out", "wt", stdout); ^ user.cpp:75:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &N, &K); ^ user.cpp:77:55: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", (i<=N? &M[0][i-1] : &M[1][i-N-1])); ^

Ceva nu functioneaza?