Borderou de evaluare (job #1230931)
Utilizator | Data | 19 septembrie 2014 13:11:33 | |
---|---|---|---|
Problema | Boundingbox | Status | done |
Runda | Infoarena Cup 2014 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int valid(int)’:
user.cpp:11:6: error: ‘x’ was not declared in this scope
if(x[k]<=x[i])
^
user.cpp: In function ‘int main()’:
user.cpp:34:3: error: ‘x’ was not declared in this scope
x[k1]=0;
^
user.cpp:73:31: error: invalid conversion from ‘int’ to ‘FILE* {aka _IO_FILE*}’ [-fpermissive]
fprintf(g,"%d/%d",s,pow(2,n));
^
In file included from /usr/include/stdio.h:934:0,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/stdio2.h:96:1: error: initializing argument 1 of ‘int fprintf(FILE*, const char*, ...)’ [-fpermissive]
fprintf (FILE *__restrict __stream, __const char *__restrict __fmt, ...)
^
user.cpp:73:31: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘double’ [-Wformat=]
fprintf(g,"%d/%d",s,pow(2,n));
^
user.cpp:19:19: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&t);
^
user.cpp:21:25: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d%d",&r,&c);
^
user.cpp:24:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%c",&car);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !