Borderou de evaluare (job #2185932)

Utilizator We_love_alexniuclaeCNILC.Delia.Theo.Stefan We_love_alexniuclae Data 25 martie 2018 10:28:43
Problema Eqprob Status done
Runda Agm 2018 Runda 2 Compilator cpp | Vezi sursa
Scor 0

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
140ms816kbIncorect0
Punctaj total0

Ceva nu functioneaza?