Borderou de evaluare (job #1472912)

Utilizator theprdvtheprdv theprdv Data 18 august 2015 01:39:13
Problema Tetris2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:27:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = 0, now; j < n; ++j){ ^ user.cpp:34:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (!i && j && j < n - 1) LP1 = (LP1 * base) % MOD; ^ user.cpp:44:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = 0, now, start; j < m; ++j){ ^ user.cpp:52:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (j >= n){ /* Drop the last two values of line fron hash */ ^ user.cpp:57:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (j >= n) /* make a new start and add it in hash */ ^ user.cpp:62:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (j >= n - 1){ ^ user.cpp:89:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d", ans); ^ user.cpp:16:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("tetris2.in", "r", stdin); ^ user.cpp:17:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("tetris2.out", "w", stdout); ^ user.cpp:20:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &m); ^ user.cpp:23:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ", &M[i][j]); ^ user.cpp:25:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:28:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &N[i][j]); ^ user.cpp:82:48: warning: ‘hash2’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (Rhash == Rhash2 && hash == test[n - 1] && hash2 == test[0]) ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms392kbIncorect0
20ms388kbOK10
384ms3276kbIncorect0
484ms3272kbIncorect0
588ms3268kbOK10
676ms3272kbIncorect0
776ms3272kbIncorect0
876ms3276kbIncorect0
976ms3272kbIncorect0
100ms352kbOK10
Punctaj total30

Ceva nu functioneaza?