|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ultima problemă
grupă: mică
sursă: OMI 2016 ultimul articol
autor: Prof. Radu Vişinescu
ultimul software
autor: Prof. Emanuela Cerchez
|
Sursa 538117
Mesaj evaluator:
joc11.cpp: In function 'void coborare()':
joc11.cpp:29: warning: NULL used in arithmetic
joc11.cpp: In function 'bool liber(int)':
joc11.cpp:45: warning: NULL used in arithmetic
joc11.cpp: In function 'void afis()':
joc11.cpp:63: warning: NULL used in arithmetic
joc11.cpp: In function 'int main()':
joc11.cpp:87: warning: NULL used in arithmetic
joc11.cpp:71: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result
joc11.cpp:72: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result
joc11.cpp:74: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result
joc11.cpp:76: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result
joc11.cpp:82: warning: 'poz' may be used uninitialized in this function
In file included from /usr/include/stdio.h:910,
from /usr/include/c++/4.4/cstdio:45,
from joc11.cpp:1:
In function 'char* gets(char*)',
inlined from 'int main()' at joc11.cpp:76:
/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/cccCSSfm.o: In function `main':
joc11.cpp:(.text+0x375): warning: the `gets' function is dangerous and should not be used.
Teste de evaluare:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ajutor |