Pagini recente » Borderou de evaluare (job #2831445) | Borderou de evaluare (job #2909200) | Borderou de evaluare (job #2472250) | Cod sursa (job #2805167) | Borderou de evaluare (job #2415889)
Borderou de evaluare (job #2415889)
Raport evaluator
Compilare:
main.cpp: In function 'void solve(int)':
main.cpp:10:19: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(v+1,N,fin);
^
main.cpp: In function 'int main()':
main.cpp:38:21: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(s+1,N,fin);
^
main.cpp:40:25: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d ",&n);
^
In file included from /usr/include/stdio.h:936:0,
from /usr/include/c++/6/cstdio:42,
from /usr/include/c++/6/ext/string_conversions.h:43,
from /usr/include/c++/6/bits/basic_string.h:5420,
from /usr/include/c++/6/string:52,
from /usr/include/c++/6/bits/locale_classes.h:40,
from /usr/include/c++/6/bits/ios_base.h:41,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from main.cpp:1:
In function 'char* fgets(char*, int, FILE*)',
inlined from 'void solve(int)' at main.cpp:10:19:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:261:58: warning: call to '__fgets_chk_warn' declared with attribute warning: fgets called with bigger size than length of destination buffer
return __fgets_chk_warn (__s, __bos (__s), __n, __stream);
^
In function 'char* fgets(char*, int, FILE*)',
inlined from 'int main()' at main.cpp:38:21:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:261:58: warning: call to '__fgets_chk_warn' declared with attribute warning: fgets called with bigger size than length of destination buffer
return __fgets_chk_warn (__s, __bos (__s), __n, __stream);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 63ms | 2621kb | OK | 4 |
| 2 | 92ms | 2883kb | OK | 4 |
| 3 | 65ms | 2228kb | OK | 4 |
| 4 | 81ms | 2752kb | OK | 4 |
| 5 | 2ms | 131kb | OK | 4 |
| 6 | 3ms | 131kb | OK | 4 |
| 7 | 3ms | 131kb | OK | 4 |
| 8 | 3ms | 131kb | OK | 4 |
| 9 | 4ms | 393kb | OK | 4 |
| 10 | 4ms | 393kb | OK | 4 |
| 11 | 4ms | 393kb | OK | 4 |
| 12 | 4ms | 393kb | OK | 4 |
| 13 | 4ms | 393kb | OK | 4 |
| 14 | 4ms | 393kb | OK | 4 |
| 15 | 4ms | 393kb | OK | 4 |
| 16 | 4ms | 393kb | OK | 4 |
| 17 | 252ms | 4587kb | OK | 4 |
| 18 | 266ms | 4456kb | OK | 4 |
| 19 | 272ms | 4587kb | OK | 4 |
| 20 | 304ms | 4587kb | OK | 4 |
| 21 | 272ms | 4718kb | OK | 4 |
| 22 | 271ms | 4587kb | OK | 4 |
| 23 | 293ms | 4718kb | OK | 4 |
| 24 | 262ms | 4456kb | OK | 4 |
| 25 | 288ms | 4718kb | OK | 4 |
| Punctaj total | 100 |