Borderou de evaluare (job #1559533)

Utilizator papinubPapa Victor papinub Data 30 decembrie 2015 23:43:39
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:23: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:25:21: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(sir[i]); ^ user.cpp:35: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:1: In function ‘char* gets(char*)’, inlined from ‘void readData()’ at user.cpp:25: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/ccWokRNf.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
20ms292kbCool!10
30ms300kbCool!10
472ms312kbCool!10
50ms328kbCool!10
68ms352kbCool!10
74ms384kbCool!10
88ms384kbCool!10
936ms448kbCool!10
1012ms444kbCool!10
Punctaj total100

Ceva nu functioneaza?