Borderou de evaluare (job #1757362)
Utilizator | Data | 14 septembrie 2016 21:35:48 | |
---|---|---|---|
Problema | Dreptunghiuri3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:42: error: ‘int y1’ redeclared as different kind of symbol
int nr,Max,X[2001],Y[2001],nrx,nry,x1,x2,y1,y2,i,j,N,M,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/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:88:12: error: assignment of function ‘double y1(double)’
y1 = binsrchy(V[i].y1);
^
user.cpp:88:12: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:90:17: error: invalid types ‘long long int [2001][double(double)throw ()]’ for array subscript
A[x1][y1]+=V[i].v;
^
user.cpp:92:19: error: invalid types ‘long long int [2001][double(double)throw ()]’ for array subscript
A[x2+1][y1]-=V[i].v;
^
user.cpp: In function ‘int binsrchx(int)’:
user.cpp:27:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int binsrchy(int)’:
user.cpp:41:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !