Borderou de evaluare (job #1442214)

Utilizator DrumeaVDrumea Vasile DrumeaV Data 24 mai 2015 18:22:52
Problema Hashuri Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:40:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=] scanf("%d",N); ^ user.cpp:45:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=] scanf("%d %d",op,x); ^ user.cpp:45:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=] user.cpp:38:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("hashuri.in","r",stdin); ^ user.cpp:39:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("hashuri.out","w",stdout); ^ user.cpp:40:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",N); ^ user.cpp:45:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",op,x); ^ user.cpp:10:21: warning: ‘x’ is used uninitialized in this function [-Wuninitialized] int value = x % Mod; ^ user.cpp:44:16: note: ‘x’ was declared here int op,x; ^ user.cpp:45:28: warning: ‘op’ may be used uninitialized in this function [-Wmaybe-uninitialized] scanf("%d %d",op,x); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
116ms13420kbKilled by signal 11(SIGSEGV).00
216ms13416kbKilled by signal 11(SIGSEGV).00
316ms13416kbKilled by signal 11(SIGSEGV).00
416ms13420kbKilled by signal 11(SIGSEGV).00
516ms13424kbKilled by signal 11(SIGSEGV).0
616ms13420kbKilled by signal 11(SIGSEGV).0
716ms13420kbKilled by signal 11(SIGSEGV).00
816ms13420kbKilled by signal 11(SIGSEGV).00
916ms13420kbKilled by signal 11(SIGSEGV).0
1016ms13416kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?