Borderou de evaluare (job #1616735)

Utilizator SolcanMihaiSolcan Mihai Andrei SolcanMihai Data 27 februarie 2016 11:51:54
Problema Colaj Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void umplere()’: user.cpp:149:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i <= cordy.size() * 2 - 1; i++) ^ user.cpp:151:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j <= cordx.size() * 2; j++) ^ user.cpp:187:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i <= 2 * cordx.size() + 10; i++) ^ user.cpp:189:48: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j <= 2 * cordy.size() + 10; j++) ^ user.cpp: In function ‘void citire()’: user.cpp:29:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:30:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &m, &p); ^ user.cpp:42:57: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d %d", &tmp1, &tmp2, &tmp3, &tmp4); ^ user.cpp: In function ‘int main()’: user.cpp:205:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("colaj.in", "r", stdin); ^ user.cpp:206:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("colaj.out", "w", stdout); ^ user.cpp: In function ‘void umplere()’: user.cpp:159:22: warning: iteration 200u invokes undefined behavior [-Waggressive-loop-optimizations] mat[0][i] = 1; ^ user.cpp:157:5: note: containing loop for(int i = 0; i < 205; i++) ^ user.cpp: In function ‘void citire()’: user.cpp:36:26: warning: iteration 200u invokes undefined behavior [-Waggressive-loop-optimizations] mat[i][j] = 5; ^ user.cpp:32:5: note: containing loop for(int i = 0; i < 205; i++) ^ user.cpp:36:26: warning: iteration 200u invokes undefined behavior [-Waggressive-loop-optimizations] mat[i][j] = 5; ^ user.cpp:34:9: note: containing loop for(int j = 0; j < 205; j++) ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms440kbKilled by signal 11(SIGSEGV).0
20ms440kbKilled by signal 11(SIGSEGV).0
30ms440kbKilled by signal 11(SIGSEGV).0
40ms440kbKilled by signal 11(SIGSEGV).0
50ms440kbKilled by signal 11(SIGSEGV).0
60ms440kbKilled by signal 11(SIGSEGV).0
70ms440kbKilled by signal 11(SIGSEGV).0
80ms440kbKilled by signal 11(SIGSEGV).0
90ms440kbKilled by signal 11(SIGSEGV).0
100ms440kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?