Borderou de evaluare (job #1749853)

Utilizator akaprosAna Kapros akapros Data 28 august 2016 21:39:01
Problema ADN Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int Cost(int, int)’: user.cpp:36:9: warning: unused variable ‘i’ [-Wunused-variable] int i, nod; ^ user.cpp: In function ‘void read()’: user.cpp:26:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("adn.in", "r", stdin); ^ user.cpp:27:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:30:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s[i] + 1); ^ user.cpp: In function ‘void write()’: user.cpp:111:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("adn.out", "w", stdout); ^ 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 ‘void read()’ at user.cpp:30: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/cc6Q6qRI.o: In function `read()': user.cpp:(.text+0xdc): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
124ms19924kbWrong asnwer0
224ms19928kbWrong asnwer0
324ms19944kbWrong asnwer0
424ms19944kbWrong asnwer0
536ms19948kbWrong asnwer0
656ms19984kbWrong asnwer0
732ms20156kbWrong asnwer0
8132ms20160kbWrong asnwer0
9840ms20248kbWrong asnwer0
10840ms20264kbWrong asnwer0
Punctaj total0

Ceva nu functioneaza?