Borderou de evaluare (job #1691258)

Utilizator al.mocanuAlexandru Mocanu al.mocanu Data 17 aprilie 2016 17:41:40
Problema Unlock Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void solve()’: user.cpp:58:35: error: variable-sized object ‘d’ may not be initialized int nr = 0, d[n + 1][m + 1] = {0}; ^ user.cpp:59:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < color[i].size(); j++){ ^ user.cpp:83:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(nr == s.size()) ^ user.cpp: In function ‘int main()’: user.cpp:89:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("unlock.in", "r", stdin); ^ user.cpp:90:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("unlock.out", "w", stdout); ^ user.cpp:91:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &t); ^ user.cpp:93:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &n, &m, &k); ^ user.cpp:96:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &a[i][j]); ^

Ceva nu functioneaza?