Borderou de evaluare (job #1438562)
Utilizator | Data | 20 mai 2015 11:36:41 | |
---|---|---|---|
Problema | Cabana2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:24:26: error: ‘int y1’ redeclared as different kind of symbol
int n , m , i , j , x1 , y1 , x2 , y2 , NR , XX , YY , Max;
^
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 ‘void update(int, int, int, int, int)’:
user.cpp:35:9: warning: unused variable ‘i’ [-Wunused-variable]
int i , j , mij;
^
user.cpp:35:13: warning: unused variable ‘j’ [-Wunused-variable]
int i , j , mij;
^
user.cpp: In function ‘int interogare(int, int, int, int, int)’:
user.cpp:54:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < arb[nod].size(); ++i) sol[++sol[0]] = arb[nod][i];
^
user.cpp:70:43: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
int ind1 = cautare_binara(y1 , sol); int ind2 = cautare_binara(y2 , sol);
^
user.cpp:31:5: error: initializing argument 1 of ‘int cautare_binara(int, int*)’ [-fpermissive]
int cautare_binara(int val, int v[]);
^
user.cpp:74:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (sol[ind1] >= y1) ind1--;
^
user.cpp:77:56: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (ind1 - ind2<= 0) return ((x2 - x1) * (y1 - y2));
^
user.cpp:77:58: error: invalid operands of types ‘int’ and ‘double (*)(double)throw ()’ to binary ‘operator*’
if (ind1 - ind2<= 0) return ((x2 - x1) * (y1 - y2));
^
user.cpp: In function ‘int main()’:
user.cpp:149:38: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
if (arb[nod].empty() && left <= NR & right <= NR)
^
user.cpp:152:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0 , j = 0; i < arb[left].size() || j < arb[right].size(); )
^
user.cpp:152:77: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0 , j = 0; i < arb[left].size() || j < arb[right].size(); )
^
user.cpp:154:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (i < arb[left].size() && j < arb[right].size() && arb[left][i] < arb[right][j])
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !