Borderou de evaluare (job #721863)
Utilizator | Data | 24 martie 2012 12:20:58 | |
---|---|---|---|
Problema | Cobai | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void citire()’:
user.cpp:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result
user.cpp:22: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result
user.cpp:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result
user.cpp: In function ‘int main()’:
user.cpp:69: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result
user.cpp:70: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result
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:22:
/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/cchnL8wQ.o: In function `citire()':
user.cpp:(.text+0x24f): warning: the `gets' function is dangerous and should not be used.
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libc.a(malloc.o): In function `free':
(.text+0x4b50): multiple definition of `free'
/tmp/cchnL8wQ.o:(.bss+0x3f44): first defined here
/usr/bin/ld: Warning: size of symbol `free' changed from 4 in /tmp/cchnL8wQ.o to 186 in /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libc.a(malloc.o)
/usr/bin/ld: Warning: type of symbol `free' changed from 1 to 2 in /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libc.a(malloc.o)
/tmp/cchnL8wQ.o: In function `citire()':
user.cpp:(.text+0x26b): warning: the `gets' function is dangerous and should not be used.
collect2: ld returned 1 exit status
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !