Pagini recente » Borderou de evaluare (job #2108918) | Borderou de evaluare (job #3237663) | Borderou de evaluare (job #3224493) | Borderou de evaluare (job #771041) | Borderou de evaluare (job #2185938)
Borderou de evaluare (job #2185938)
Raport evaluator
Compilare:
user.cpp: In function ‘long long int cmlsc(int, int, int)’:
user.cpp:32:16: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if (str[i] == str[j])
^
user.cpp: In function ‘int main()’:
user.cpp:42: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:43: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:46:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &T);
^
user.cpp:51:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d\n", &n);
^
user.cpp:53: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:53: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 | 52ms | 756kb | OK | 100 |
Punctaj total | 100 |