Borderou de evaluare (job #1950020)

Utilizator Theodor1000Cristea Theodor Stefan Theodor1000 Data 2 aprilie 2017 17:02:26
Problema Sobo Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:48:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf ("%d", &cost[i]); ^ user.cpp:35:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("sobo.in", "r", stdin); ^ user.cpp:36:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("sobo.out", "w", stdout); ^ user.cpp:38:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d %d\n", &n, &l); ^ user.cpp:43:26: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets (str[i] + 1); ^ user.cpp:48:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &cost[i]); ^ 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:43:26: /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/cc8S2GVT.o: In function `main': user.cpp:(.text.startup+0x8a): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms280kbUrat.. urat de tot: raspuns gresit0
20ms280kbUrat.. urat de tot: raspuns gresit0
30ms288kbUrat.. urat de tot: raspuns gresit0
464ms296kbUrat.. urat de tot: raspuns gresit0
50ms320kbUrat.. urat de tot: raspuns gresit0
68ms352kbUrat.. urat de tot: raspuns gresit0
78ms376kbUrat.. urat de tot: raspuns gresit0
812ms404kbUrat.. urat de tot: raspuns gresit0
940ms480kbUrat.. urat de tot: raspuns gresit0
1016ms440kbUrat.. urat de tot: raspuns gresit0
Punctaj total0

Ceva nu functioneaza?