Borderou de evaluare (job #1318853)

Utilizator arbii123Arbi Elei arbii123 Data 16 ianuarie 2015 14:04:27
Problema Avarcolaci Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:9:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=] scanf("%d", m); ^ user.cpp:12:12: warning: unused variable ‘k’ [-Wunused-variable] int k=n; ^ user.cpp:24:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=] scanf("%d", m); ^ user.cpp:8:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("avarcolaci.in", "r", stdin); ^ user.cpp:9:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", m); ^ user.cpp:11:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf( "%d", &n); ^ user.cpp:14:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &num); ^ user.cpp:22:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("avarcolaci.in", "r", stdin); ^ user.cpp:23:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("avarcolaci.out","w", stdout); ^ user.cpp:24:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", m); ^ user.cpp:27:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &num); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms220kbKilled by signal 11(SIGSEGV).0
20ms220kbKilled by signal 11(SIGSEGV).0
30ms220kbKilled by signal 11(SIGSEGV).0
40ms220kbKilled by signal 11(SIGSEGV).0
50ms220kbKilled by signal 11(SIGSEGV).0
60ms224kbKilled by signal 11(SIGSEGV).0
70ms220kbKilled by signal 11(SIGSEGV).0
80ms220kbKilled by signal 11(SIGSEGV).0
90ms216kbKilled by signal 11(SIGSEGV).0
100ms220kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?