Borderou de evaluare (job #1790064)

Utilizator vladdy47Bucur Vlad Andrei vladdy47 Data 27 octombrie 2016 19:03:15
Problema Interesant Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 17

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:21:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("interesant.in", "r", stdin); ^ user.cpp:22:43: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("interesant.out", "w", stdout); ^ user.cpp:24:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &type, &n); ^ user.cpp:31:27: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s[i] + 1); ^ user.cpp:67:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s[i] + 1); ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:46, from user.cpp:1: In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:31:27: /usr/include/i386-linux-gnu/bits/stdio2.h:230:28: warning: call to ‘__gets_warn’ declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size [enabled by default] return __gets_warn (__str); ^ In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:67:23: /usr/include/i386-linux-gnu/bits/stdio2.h:230:28: warning: call to ‘__gets_warn’ declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size [enabled by default] return __gets_warn (__str); ^ /tmp/ccoMQ89h.o: In function `main': user.cpp:(.text.startup+0x9f): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
14ms1264kbIncorect.00
24ms1436kbIncorect.0
30ms596kbIncorect.0
40ms1116kbIncorect.0
50ms548kbOK.33
6128ms1272kbNumar de siruri incorect.00
70ms504kbOK.33
876ms964kbOK.33
9224ms1428kbOK.44
10188ms1420kbNumar de siruri incorect.00
11196ms1316kbOK.44
12228ms1368kbNumar de siruri incorect.00
13240ms1392kbNumar de siruri incorect.00
14208ms1440kbNumar de siruri incorect.00
15236ms1436kbNumar de siruri incorect.00
16312ms1432kbNumar de siruri incorect.00
17296ms1424kbNumar de siruri incorect.00
18228ms1436kbNumar de siruri incorect.00
19232ms1428kbNumar de siruri incorect.00
20256ms1432kbNumar de siruri incorect.00
21244ms1436kbNumar de siruri incorect.00
22232ms1436kbNumar de siruri incorect.00
Punctaj total17

Ceva nu functioneaza?