Borderou de evaluare (job #946840)
Utilizator | Data | 6 mai 2013 00:25:17 | |
---|---|---|---|
Problema | Zoo | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:14:25: error: ‘long int y1’ redeclared as different kind of symbol
long n, m, X[MAXN], x1, y1, x2, y2, A[100][MAXN], i;
^
In file included from /usr/include/features.h:346:0,
from /usr/include/stdio.h:28,
from user.cpp:1:
/usr/include/bits/mathcalls.h:242:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘long int Query(long int, long int, long int)’:
user.cpp:57:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (y1 > A[lv][dr] || y2 < A[lv][st]) {
^
user.cpp:60:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (y1 < A[lv][st] && A[lv][dr] < y2) {
^
user.cpp:63:75: warning: pointer to a function used in arithmetic [-Wpointer-arith]
long ret = Search(A[lv], st, dr, y2) - Search(A[lv], st, dr, y1 - 1);
^
user.cpp:63:73: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘long int’ [-fpermissive]
long ret = Search(A[lv], st, dr, y2) - Search(A[lv], st, dr, y1 - 1);
^
user.cpp:42:6: error: initializing argument 4 of ‘long int Search(long int*, long int, long int, long int)’ [-fpermissive]
long Search(long *S, long st, long dr, long y) {
^
user.cpp: In function ‘int main()’:
user.cpp:90:49: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=]
scanf("%ld%ld%ld%ld", &x1, &y1, &x2, &y2);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !