Pagini recente » Borderou de evaluare (job #331339) | Borderou de evaluare (job #2465887) | Borderou de evaluare (job #2034014) | Borderou de evaluare (job #636984) | Borderou de evaluare (job #2632414)
Borderou de evaluare (job #2632414)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:51:24: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &TN);
^
main.cpp:54:26: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(B + 1, NMax, fin);
^
main.cpp:60:24: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &w);
^
main.cpp:63:27: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(A + 1, NMax, fin);
^
In file included from /usr/include/stdio.h:936:0,
from main.cpp:2:
In function 'char* fgets(char*, int, FILE*)',
inlined from 'int main()' at main.cpp:54:26:
/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:63:27:
/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 | 174ms | 524kb | Incorect | 0 |
Punctaj total | 0 |