Borderou de evaluare (job #1425054)
Utilizator | Data | 26 aprilie 2015 15:46:28 | |
---|---|---|---|
Problema | A+B | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:10:2: warning: conversion lacks type at end of format [-Wformat=]
fscanf(fin,"%l", a);
^
user.c:10:2: warning: too many arguments for format [-Wformat-extra-args]
user.c:11:2: warning: conversion lacks type at end of format [-Wformat=]
fscanf(fin,"%l", b);
^
user.c:11:2: warning: too many arguments for format [-Wformat-extra-args]
user.c:12:2: warning: implicit declaration of function ‘fprinf’ [-Wimplicit-function-declaration]
fprinf(fout,"%l", a + b);
^
user.c:14:2: warning: implicit declaration of function ‘close’ [-Wimplicit-function-declaration]
close(fin);
^
user.c:10:8: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%l", a);
^
user.c:11:8: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%l", b);
^
user.c:10:8: warning: ‘a’ is used uninitialized in this function [-Wuninitialized]
fscanf(fin,"%l", a);
^
user.c:11:8: warning: ‘b’ is used uninitialized in this function [-Wuninitialized]
fscanf(fin,"%l", b);
^
/tmp/ccUnaLFi.o: In function `main':
user.c:(.text.startup+0x7e): undefined reference to `fprinf'
collect2: error: ld returned 1 exit status
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !