Borderou de evaluare (job #1218402)
Utilizator | Data | 10 august 2014 22:04:44 | |
---|---|---|---|
Problema | Matrice 2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:8: error: ‘int y1’ redeclared as different kind of symbol
int x1,y1,x2,y2,k;
^
In file included from /usr/include/features.h:357:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420,
from /usr/include/c++/4.8/cstdio:41,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:19:39: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘double (*)(double)throw ()’ [-Wformat=]
fscanf(f,"%d %d %d %d",&x1,&y1,&x2,&y2);
^
user.cpp:20:17: error: invalid types ‘int [305][double(double)throw ()]’ for array subscript
st=1;dr=v[x1][y1];
^
user.cpp:25:23: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
col[1]=y1;
^
user.cpp:27:25: error: invalid types ‘int [305][double(double)throw ()]’ for array subscript
x[x1][y1]=k;
^
user.cpp:15:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d",&n,&q);
^
user.cpp:16:63: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (i=1;i<=n;i++) for (j=1;j<=n;j++) {fscanf(f,"%d",&v[i][j]);}
^
user.cpp:19:40: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d %d %d",&x1,&y1,&x2,&y2);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !