Borderou de evaluare (job #1604858)

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

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/ccbrWjMl.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
10ms408kbOK10
20ms540kbOK10
30ms780kbOK10
40ms784kbOK10
50ms776kbOK10
636ms4292kbOK10
760ms8288kbOK10
860ms8288kbOK10
9152ms16284kbOK10
10188ms16280kbOK10
Punctaj total100

Ceva nu functioneaza?