Borderou de evaluare (job #1779581)

Utilizator Theodor1000Cristea Theodor Stefan Theodor1000 Data 15 octombrie 2016 14:15:00
Problema SETI Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:66:9: warning: unused variable ‘nr’ [-Wunused-variable] int nr = 0; ^ user.cpp:32:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("seti.in", "r", stdin); ^ user.cpp:33:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("seti.out", "w", stdout); ^ user.cpp:36:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d\n", &n); ^ user.cpp:40:20: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets (p[0]); ^ user.cpp:45:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d\n", &m); ^ user.cpp:49:24: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets (p[i] + 1); ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from user.cpp:1: In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:49:24: /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/ccyOkwhI.o: In function `main': user.cpp:(.text.startup+0xd8): warning: the `gets' function is dangerous and should not be used. user.cpp:(.text.startup+0x7a): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
192ms8164kbOK10
244ms8244kbOK10
368ms8848kbOK10
472ms12400kbOK10
5120ms8892kbIncorect0
6208ms8916kbIncorect0
7320ms8948kbIncorect0
8364ms12768kbIncorect0
9360ms12836kbIncorect0
10Depăşit12684kbTime limit exceeded.0
Punctaj total40

Ceva nu functioneaza?