Borderou de evaluare (job #1790069)

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

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:65: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:65: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/ccmxZ08p.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
14ms1256kbOK.520
24ms1432kbOK.5
30ms600kbOK.5
40ms1108kbOK.5
50ms544kbOK.33
6124ms1276kbNumar de siruri incorect.00
70ms500kbOK.33
884ms968kbOK.33
9228ms1432kbOK.44
10188ms1424kbNumar de siruri incorect.00
11192ms1316kbOK.44
12224ms1372kbNumar de siruri incorect.00
13236ms1400kbNumar de siruri incorect.00
14212ms1440kbNumar de siruri incorect.00
15248ms1436kbNumar de siruri incorect.00
16324ms1428kbNumar de siruri incorect.00
17280ms1416kbNumar de siruri incorect.00
18248ms1432kbNumar de siruri incorect.00
19244ms1432kbNumar de siruri incorect.00
20260ms1440kbNumar de siruri incorect.00
21260ms1432kbNumar de siruri incorect.00
22228ms1436kbNumar de siruri incorect.00
Punctaj total37

Ceva nu functioneaza?