Borderou de evaluare (job #1910098)
Utilizator | Data | 7 martie 2017 15:37:11 | |
---|---|---|---|
Problema | Colaj | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:24: error: ‘int j1’ redeclared as different kind of symbol
int n,m,p,k,i,j,poz,i1,j1,x1,y1,x2,y2,zone,vx[210],vy[210],wx[210],wy[210];
^
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:240:1: error: previous declaration of ‘double j1(double)’
__MATHCALL (j1,, (_Mdouble_));
^
user.cpp:9:30: error: ‘int y1’ redeclared as different kind of symbol
int n,m,p,k,i,j,poz,i1,j1,x1,y1,x2,y2,zone,vx[210],vy[210],wx[210],wy[210];
^
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:78:11: error: assignment of function ‘double y1(double)’
y1=wy[poz];
^
user.cpp:78:11: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:84:20: error: assignment of function ‘double j1(double)’
for (j1=y1; j1<=y2-1; j1++)
^
user.cpp:84:20: error: cannot convert ‘double(double)throw ()’ to ‘double(double)throw ()’ in assignment
user.cpp:84:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for (j1=y1; j1<=y2-1; j1++)
^
user.cpp:84:37: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive]
for (j1=y1; j1<=y2-1; j1++)
^
user.cpp:84:37: error: lvalue required as increment operand
user.cpp:85:23: error: invalid types ‘bool [210][double(double)throw ()]’ for array subscript
mat[i1][j1]=1;
^
user.cpp: In function ‘int caut(int, int*)’:
user.cpp:24:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:46:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("colaj.in","r",stdin);
^
user.cpp:47:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !