Pagini recente » Borderou de evaluare (job #1376643) | Borderou de evaluare (job #47596) | Borderou de evaluare (job #364227) | Borderou de evaluare (job #3282296) | Borderou de evaluare (job #1416378)
Borderou de evaluare (job #1416378)
Raport evaluator
Compilare:
user.cpp: In function ‘void read(int&, int&)’:
user.cpp:17:25: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fgets(s+1,100,stdin); l=strlen (s+1);
^
user.cpp: In function ‘int main()’:
user.cpp:34:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ograzi.in" , "r" , stdin );
^
user.cpp:35:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ograzi.out" , "w" , stdout);
^
user.cpp:37:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d\n",&n,&m,&w,&h);
^
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* fgets(char*, int, FILE*)’,
inlined from ‘void read(int&, int&)’ at user.cpp:17:25:
/usr/include/i386-linux-gnu/bits/stdio2.h:253:58: warning: call to ‘__fgets_chk_warn’ declared with attribute warning: fgets called with bigger size than length of destination buffer [enabled by default]
return __fgets_chk_warn (__s, __bos (__s), __n, __stream);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 12ms | 8244kb | OK | 10 |
2 | 80ms | 9024kb | OK | 10 |
3 | 48ms | 9028kb | OK | 10 |
4 | 88ms | 9020kb | OK | 10 |
5 | 80ms | 9016kb | OK | 10 |
6 | 96ms | 9016kb | OK | 10 |
7 | 76ms | 8716kb | OK | 10 |
8 | 28ms | 8720kb | OK | 10 |
9 | 12ms | 8252kb | OK | 10 |
10 | 40ms | 8252kb | OK | 10 |
Punctaj total | 100 |