Borderou de evaluare (job #1798770)

Utilizator dragomir_ioanDragomir Ioan dragomir_ioan Data 5 noiembrie 2016 13:44:13
Problema Interclasare Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 4

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:17:20: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d", &a[i]); ^ user.cpp:20:20: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d", &b[i]); ^ user.cpp:12:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("interclasare.in", "r", stdin); ^ user.cpp:13:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("interclasare.out", "w", stdout); ^ user.cpp:15:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:17:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &a[i]); ^ user.cpp:18:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &m); ^ user.cpp:20:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &b[i]); ^ user.cpp: In function ‘void scmax(short int*, int, short int*)’: user.cpp:79:20: warning: ‘elem’ may be used uninitialized in this function [-Wmaybe-uninitialized] poz[i] = elem+1; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms304kbKilled by signal 11(SIGSEGV).0
20ms348kbSirul nu e obtinut prin interclasare!4
30ms320kbKilled by signal 11(SIGSEGV).0
40ms328kbKilled by signal 11(SIGSEGV).0
50ms332kbKilled by signal 11(SIGSEGV).0
64ms348kbKilled by signal 11(SIGSEGV).0
74ms356kbKilled by signal 11(SIGSEGV).0
84ms364kbKilled by signal 11(SIGSEGV).0
94ms356kbKilled by signal 11(SIGSEGV).0
104ms380kbKilled by signal 11(SIGSEGV).0
Punctaj total4

Ceva nu functioneaza?