Borderou de evaluare (job #2002713)
Utilizator | Data | 20 iulie 2017 17:04:00 | |
---|---|---|---|
Problema | H | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:16:38: error: ‘long int yn [198000]’ redeclared as different kind of symbol
long n, i, j, k, y[3*maxn], yn[3*maxn], aux, sol;
^
In file included from /usr/include/features.h:357:0,
from /usr/include/stdio.h:28,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:244:1: error: previous declaration of ‘double yn(int, double)’
__MATHCALL (yn,, (int, _Mdouble_));
^
user.cpp: In function ‘long int bin(long int)’:
user.cpp:55:20: warning: pointer to a function used in arithmetic [-Wpointer-arith]
left=1; right=yn[0];
^
user.cpp:55:15: error: invalid conversion from ‘double (*)(int, double)throw ()’ to ‘long int’ [-fpermissive]
left=1; right=yn[0];
^
user.cpp:59:12: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(yn[med]==search) return med;
^
user.cpp:59:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(yn[med]==search) return med;
^
user.cpp:60:12: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(yn[med]<search) left=med+1;
^
user.cpp:60:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(yn[med]<search) left=med+1;
^
user.cpp: In function ‘int main()’:
user.cpp:69:16: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
scanf("%d", &n);
^
user.cpp:72:46: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
scanf("%d%d%d", &v[i].x, &v[i].yj, &v[i].ys);
^
user.cpp:72:46: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=]
user.cpp:72:46: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=]
user.cpp:80:12: warning: pointer to a function used in arithmetic [-Wpointer-arith]
yn[++yn[0]]=y[i];
^
user.cpp:80:12: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(int, double)throw ()’ [-fpermissive]
user.cpp:80:12: error: lvalue required as increment operand
user.cpp:82:8: warning: pointer to a function used in arithmetic [-Wpointer-arith]
k=yn[0];
^
user.cpp:82:3: error: invalid conversion from ‘double (*)(int, double)throw ()’ to ‘long int’ [-fpermissive]
k=yn[0];
^
user.cpp:96:44: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(aux!=-inf) sol=max(sol, aux-yn[v[i].yj]*2-v[i].x);
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !