Borderou de evaluare (job #184997)

Utilizator avatar calingeorgescu Calin Stefan Georgescu calingeorgescu IP ascuns
Problemă Mesaj1 (clasa a 7-a) Compilator cpp
Rundă Status evaluat
Dată 23 ian. 2016 13:39:17 Scor ascuns

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:20:21: warning: unused variable ‘max’ [-Wunused-variable] user.cpp:18:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:19:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:21:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:22:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:23:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:24:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:33:28: warning: ‘poz’ may be used uninitialized in this function [-Wuninitialized] /tmp/ccKqZ5go.o: In function `main': user.cpp:(.text.startup+0x6a): warning: the `gets' function is dangerous and should not be used.