Borderou de evaluare (job #1257239)
Utilizator | Data | 7 noiembrie 2014 15:00:06 | |
---|---|---|---|
Problema | Alee | 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:16:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=]
fscanf(f1,"%d %d",x,y);
^
user.cpp:16:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘int’ [-Wformat=]
user.cpp:21:58: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=]
fscanf(f1,"%d %d %d %d",start.x,start.y,stop.x,stop.y);
^
user.cpp:21:58: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘int’ [-Wformat=]
user.cpp:21:58: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘int’ [-Wformat=]
user.cpp:21:58: warning: format ‘%d’ expects argument of type ‘int*’, but argument 6 has type ‘int’ [-Wformat=]
user.cpp:30:21: error: invalid types ‘point [30625][FILE* {aka _IO_FILE*}]’ for array subscript
v[f2].x=v[i].x-1;
^
user.cpp:31:23: error: invalid types ‘point [30625][FILE* {aka _IO_FILE*}]’ for array subscript
v[f2++].y=v[i].y;
^
user.cpp:37:21: error: invalid types ‘point [30625][FILE* {aka _IO_FILE*}]’ for array subscript
v[f2].x=v[i].x+1;
^
user.cpp:38:23: error: invalid types ‘point [30625][FILE* {aka _IO_FILE*}]’ for array subscript
v[f2++].y=v[i].y;
^
user.cpp:41:22: error: expected ‘)’ before ‘]’ token
if(v[i].y]>0 &&(mat[v[i].x][v[i].y-1]==0))
^
user.cpp:41:22: error: expected primary-expression before ‘]’ token
user.cpp:41:22: error: expected ‘;’ before ‘]’ token
user.cpp:51:21: error: invalid types ‘point [30625][FILE* {aka _IO_FILE*}]’ for array subscript
v[f2].x=v[i].x;
^
user.cpp:52:23: error: invalid types ‘point [30625][FILE* {aka _IO_FILE*}]’ for array subscript
v[f2++].y=v[i].y+1;
^
user.cpp:56:15: error: invalid conversion from ‘FILE* {aka _IO_FILE*}’ to ‘int’ [-fpermissive]
s=s2;f=f2;
^
user.cpp:13:29: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f1,"%d %d",&n,&m);
^
user.cpp:16:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f1,"%d %d",x,y);
^
user.cpp:21:59: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f1,"%d %d %d %d",start.x,start.y,stop.x,stop.y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !