Borderou de evaluare (job #1604851)

Utilizator depevladVlad Dumitru-Popescu depevlad Data 18 februarie 2016 17:12:21
Problema Morcovi Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:30:34: warning: unused variable ‘bit’ [-Wunused-variable] int n, p, i, j, k, cfg, ans, bit, _this, _last; ^ user.cpp:30:39: warning: unused variable ‘_this’ [-Wunused-variable] int n, p, i, j, k, cfg, ans, bit, _this, _last; ^ user.cpp:30:46: warning: unused variable ‘_last’ [-Wunused-variable] int n, p, i, j, k, cfg, ans, bit, _this, _last; ^ user.cpp:27:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("morcovi.in", "r", stdin); ^ user.cpp:28:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("morcovi.out", "w", stdout); ^ user.cpp:32:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:33:15: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(buff); ^ user.cpp:37:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &p); ^ user.cpp:38:15: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(buff); ^ /tmp/ccaQdSBG.o: In function `main': user.cpp:(.text.startup+0x6a): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms400kbOK10
20ms792kbOK10
34ms1308kbOK10
40ms1308kbOK10
50ms792kbOK10
636ms8284kbIncorect0
74ms2360kbKilled by signal 11(SIGSEGV).0
84ms2356kbKilled by signal 11(SIGSEGV).0
90ms356kbKilled by signal 11(SIGSEGV).0
100ms356kbKilled by signal 11(SIGSEGV).0
Punctaj total50

Ceva nu functioneaza?