Borderou de evaluare (job #1790072)

Utilizator vladdy47Bucur Vlad Andrei vladdy47 Data 27 octombrie 2016 19:05:59
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/cceMfJyc.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
24ms1436kbOK.5
30ms596kbOK.5
40ms1104kbOK.5
50ms552kbOK.33
6124ms1272kbNumar de siruri incorect.00
70ms504kbOK.33
868ms960kbOK.33
9244ms1432kbOK.44
10196ms1420kbNumar de siruri incorect.00
11208ms1316kbOK.44
12236ms1372kbNumar de siruri incorect.00
13244ms1396kbNumar de siruri incorect.00
14204ms1436kbNumar de siruri incorect.00
15236ms1436kbNumar de siruri incorect.00
16332ms1424kbNumar de siruri incorect.00
17292ms1420kbNumar de siruri incorect.00
18244ms1428kbNumar de siruri incorect.00
19228ms1436kbNumar de siruri incorect.00
20252ms1440kbNumar de siruri incorect.00
21268ms1436kbNumar de siruri incorect.00
22244ms1432kbNumar de siruri incorect.00
Punctaj total37

Ceva nu functioneaza?