Borderou de evaluare (job #2486592)

Utilizator Teodor94Teodor Plop Teodor94 Data 3 noiembrie 2019 10:48:08
Problema Numar4 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 35

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:100:17: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] while (x[nr1]&1==0 && y[nr2]&1==0) ~^~~ main.cpp:100:32: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] while (x[nr1]&1==0 && y[nr2]&1==0) ~^~~ main.cpp:72:31: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d%d\n",&n1,&n2); ^ main.cpp:73:21: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] fgets(a, 4100, fin); ^ main.cpp:74:21: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] fgets(b, 4100, fin); ^ In file included from /usr/include/stdio.h:936:0, from /usr/include/c++/6/cstdio:42, from main.cpp:1: In function 'char* fgets(char*, int, FILE*)', inlined from 'int main()' at main.cpp:73: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); ^ In function 'char* fgets(char*, int, FILE*)', inlined from 'int main()' at main.cpp:74: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
12ms131kbIncorect0
22ms131kbIncorect0
32ms131kbIncorect0
42ms131kbOK5
52ms131kbIncorect0
62ms131kbOK5
72ms131kbIncorect0
82ms131kbIncorect0
92ms131kbIncorect0
102ms131kbIncorect0
112ms131kbIncorect0
122ms131kbIncorect0
133ms131kbOK5
142ms131kbOK5
153ms131kbOK5
162ms131kbIncorect0
1751ms131kbOK5
183ms131kbIncorect0
192ms131kbIncorect0
204ms131kbOK5
Punctaj total35

Ceva nu functioneaza?