Pagini recente » Borderou de evaluare (job #96004) | Borderou de evaluare (job #1673320) | Borderou de evaluare (job #2386575) | Borderou de evaluare (job #2411148) | Borderou de evaluare (job #1450801)
Borderou de evaluare (job #1450801)
Raport evaluator
Compilare:
user.cpp: In function ‘void ReadStr(char*)’:
user.cpp:26:11: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(c);
^
user.cpp: In function ‘int main()’:
user.cpp:37:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sir8.in", "rb", stdin);
^
user.cpp:38:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sir8.out", "wb", stdout);
^
user.cpp:41:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &N);
^
user.cpp:47:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &N);
^
user.cpp:54:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &op, &poz);
^
user.cpp:56:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf(" %c %d %d", &c, &a, &b);
^
user.cpp:59:41: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &ind, &a, &b);
^
In file included from /usr/include/stdio.h:934:0,
from /usr/include/c++/4.8/cstdio:42,
from user.cpp:1:
In function ‘char* gets(char*)’,
inlined from ‘void ReadStr(char*)’ at user.cpp:26:11:
/usr/include/i386-linux-gnu/bits/stdio2.h:230:28: warning: call to ‘__gets_warn’ declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size [enabled by default]
return __gets_warn (__str);
^
/tmp/ccaHoP75.o: In function `ReadStr(char*)':
user.cpp:(.text+0x9c): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 24ms | 444kb | OK | 10 |
2 | 12ms | 424kb | OK | 10 |
3 | 884ms | 1316kb | OK | 10 |
4 | 668ms | 788kb | OK | 10 |
5 | 748ms | 788kb | OK | 10 |
6 | 656ms | 1052kb | OK | 10 |
7 | 620ms | 1052kb | OK | 10 |
8 | 736ms | 788kb | OK | 10 |
9 | 676ms | 1052kb | OK | 10 |
10 | 568ms | 1316kb | OK | 10 |
Punctaj total | 100 |