Borderou de evaluare (job #1750117)

Utilizator akaprosAna Kapros akapros Data 29 august 2016 16:58:10
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:37:9: warning: unused variable ‘i’ [-Wunused-variable] int i, nod; ^ user.cpp: In function ‘void solve()’: user.cpp:68:31: warning: unused variable ‘c’ [-Wunused-variable] int i, k = 0, c; ^ user.cpp: In function ‘void read()’: user.cpp:27: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:28:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:31: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:115: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:31: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/cckMtBwT.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
224ms19932kbWrong asnwer0
324ms19940kbWrong asnwer0
424ms19944kbWrong asnwer0
524ms19944kbWrong asnwer0
624ms19988kbWrong asnwer0
724ms20156kbWrong asnwer0
824ms20164kbWrong asnwer0
928ms20252kbWrong asnwer0
1028ms20268kbWrong asnwer0
Punctaj total0

Ceva nu functioneaza?