Borderou de evaluare (job #865512)

Utilizator cat_red20Vasile Ioana cat_red20 Data 26 ianuarie 2013 16:43:07
Problema Mesaj Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘void citire()’: user.cpp:9: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result user.cpp:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result user.cpp:13: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result user.cpp:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result user.cpp:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result user.cpp: In function ‘void preproc()’: user.cpp:24: warning: array subscript has type ‘char’ user.cpp:28: warning: array subscript has type ‘char’ user.cpp: In function ‘void afisare()’: user.cpp:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result user.cpp: In function ‘int main()’: user.cpp:52: warning: array subscript has type ‘char’ user.cpp:53: warning: array subscript has type ‘char’ In file included from /usr/include/stdio.h:910, from user.cpp:1: In function ‘char* gets(char*)’, inlined from ‘void citire()’ at user.cpp:18: /usr/include/bits/stdio2.h:230: warning: call to ‘__gets_warn’ declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size /tmp/ccC5JMz1.o: In function `citire()': user.cpp:(.text+0x179): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms248kbIncorect0
20ms240kbOK10
30ms272kbIncorect0
44ms344kbIncorect0
58ms544kbIncorect0
616ms856kbIncorect0
728ms1260kbIncorect0
8124ms1868kbIncorect0
956ms1364kbIncorect0
1088ms1864kbIncorect0
Punctaj total10

Ceva nu functioneaza?