Pagini recente » Borderou de evaluare (job #85384) | Borderou de evaluare (job #69379) | Borderou de evaluare (job #866469) | Borderou de evaluare (job #2411789) | Borderou de evaluare (job #2185931)
Borderou de evaluare (job #2185931)
Raport evaluator
Compilare:
user.cpp: In function ‘int cmlsc(int, int, int)’:
user.cpp:31:16: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if (str[i] == str[j])
^
user.cpp: In function ‘int main()’:
user.cpp:41:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("eqprob.in", "r", stdin);
^
user.cpp:42:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("eqprob.out", "w", stdout);
^
user.cpp:45:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &T);
^
user.cpp:50:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d\n", &n);
^
user.cpp:52:35: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fgets (str + 1, 64, stdin);
^
In file included from /usr/include/stdio.h:936:0,
from /usr/include/c++/6/cstdio:42,
from user.cpp:1:
In function ‘char* fgets(char*, int, FILE*)’,
inlined from ‘int main()’ at user.cpp:52:35:
/usr/include/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 | 40ms | 876kb | Incorect | 0 |
Punctaj total | 0 |