Borderou de evaluare (job #1537757)

Utilizator andrei.arnautuAndi Arnautu andrei.arnautu Data 27 noiembrie 2015 22:03:41
Problema Sobo Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void readData()’: user.cpp:26:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d ", &n, &l); ^ user.cpp:28:21: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(sir[i]); ^ user.cpp:38:30: 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:4: In function ‘char* gets(char*)’, inlined from ‘void readData()’ at user.cpp:28:21: /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/ccZsIpaQ.o: In function `readData()': user.cpp:(.text+0x45): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms292kbCool!10
20ms288kbCool!10
30ms296kbCool!10
456ms316kbCool!10
50ms328kbCool!10
64ms348kbCool!10
74ms388kbCool!10
88ms384kbCool!10
928ms444kbCool!10
108ms448kbCool!10
Punctaj total100

Ceva nu functioneaza?