Borderou de evaluare (job #1259285)

Utilizator SmarandaMaria Pandele Smaranda Data 9 noiembrie 2014 21:36:42
Problema Sirag 2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘void solve()’: user.cpp:30:24: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if (i + l <= n && (s [i] == s [i + l]) || (s [i] == '*')) ^ user.cpp:43:24: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if (i + l <= n && (s [i] == s [i + l]) || (s [i] == '*')) ^ user.cpp: In function ‘void read()’: user.cpp:12:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d%d\n", &n, &l); ^ user.cpp:13:17: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets (s + 1); ^ user.cpp: In function ‘int main()’: user.cpp:76:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("sirag2.in", "r", stdin); ^ user.cpp:77:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("sirag2.out", "w", stdout); ^ user.cpp:79:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &T); ^ /tmp/ccp39ZEO.o: In function `read()': user.cpp:(.text+0x2f): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
120ms1536kbOK10
24ms1532kbOK10
34ms1536kbOK10
44ms1536kbOK10
544ms1536kbIncorect0
644ms1536kbIncorect0
744ms1536kbIncorect0
844ms1536kbIncorect0
944ms1540kbIncorect0
1044ms1536kbIncorect0
Punctaj total40

Ceva nu functioneaza?