Borderou de evaluare (job #1674230)
Utilizator | Data | 4 aprilie 2016 15:16:19 | |
---|---|---|---|
Problema | Cruce | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:35: error: ‘int y1’ redeclared as different kind of symbol
int n,u,p,i,j,ex,mij,nr,b,m,x1,x2,y1,y2,x,y;
^
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/iosfwd:38,
from /usr/include/c++/4.8/ios:38,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
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:25:15: error: assignment of function ‘double y1(double)’
y1=j+1;
^
user.cpp:25:15: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:28:43: error: invalid types ‘char [102][double(double)throw ()]’ for array subscript
if(a[x1][j]==a[x2][j]&&a[i][y1]==a[i][y2])
^
user.cpp:38:30: error: invalid types ‘char [102][double(double)throw ()]’ for array subscript
while(a[i][y1]==a[i][y2])
^
user.cpp:40:23: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive]
y1++;
^
user.cpp:40:23: error: lvalue required as increment operand
user.cpp:45:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y=y1-j-1;
^
user.cpp:45:24: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y=y1-j-1;
^
user.cpp:45:23: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
y=y1-j-1;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !