Borderou de evaluare (job #1358957)
| Utilizator | Data | 24 februarie 2015 20:43:30 | |
|---|---|---|---|
| Problema | Ben | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:25:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ben.in","r",stdin);
^
user.cpp:26:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ben.out","w",stdout);
^
user.cpp:27:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&n);
^
user.cpp:30:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n",&a,&b);
^
/usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libc.a(malloc.o): In function `free':
(.text+0x4ad0): multiple definition of `free'
/tmp/ccAACshX.o:(.bss+0xc): first defined here
/usr/bin/ld: Warning: size of symbol `free' changed from 4 in /tmp/ccAACshX.o to 140 in /usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libc.a(malloc.o)
/usr/bin/ld: Warning: type of symbol `free' changed from 1 to 2 in /usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libc.a(malloc.o)
collect2: error: ld returned 1 exit status
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
