Borderou de evaluare (job #1627870)

Utilizator teodor440Teodor Tonghioiu teodor440 Data 3 martie 2016 19:04:02
Problema Cel mai lung subsir comun Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:14:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d%d", &n, &m); ^ user.cpp:14:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp:15:44: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] for (i = 1; i <= n; i++) scanf("%d", &a[i]); ^ user.cpp:16:44: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] for (i = 1; i <= m; i++) scanf("%d", &b[i]); ^ user.cpp:12:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cmlsc.in", "r", stdin); ^ user.cpp:13:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cmlsc.in", "w", stdout); ^ user.cpp:14:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &m); ^ user.cpp:15:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (i = 1; i <= n; i++) scanf("%d", &a[i]); ^ user.cpp:16:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (i = 1; i <= m; i++) scanf("%d", &b[i]); ^ user.cpp:27:26: warning: ‘j’ may be used uninitialized in this function [-Wmaybe-uninitialized] printf("%d\n", lung[i][j]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms388kbKilled by signal 11(SIGSEGV).0
20ms392kbKilled by signal 11(SIGSEGV).0
30ms396kbKilled by signal 11(SIGSEGV).0
40ms388kbKilled by signal 11(SIGSEGV).0
50ms388kbKilled by signal 11(SIGSEGV).0
60ms388kbKilled by signal 11(SIGSEGV).0
70ms396kbKilled by signal 11(SIGSEGV).0
80ms392kbKilled by signal 11(SIGSEGV).0
90ms388kbKilled by signal 11(SIGSEGV).0
100ms392kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?