Borderou de evaluare (job #1155206)
Utilizator | Data | 26 martie 2014 19:04:49 | |
---|---|---|---|
Problema | CT | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:25: error: ‘int log’ redeclared as different kind of symbol
int i, n, a, b, ne, op, log, m, x, y, rez, T;
^
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:110:1: error: previous declaration of ‘double log(double)’
__MATHCALL (log,, (_Mdouble_ __x));
^
user.cpp: In function ‘void citire()’:
user.cpp:18:26: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%ld %ld",&n,&m);
^
user.cpp:18:26: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=]
user.cpp:23:30: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%ld %ld",&a,&b);
^
user.cpp:23:30: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=]
user.cpp: In function ‘void constr_rmq()’:
user.cpp:53:13: error: overloaded function with no contextual type information
for (log=1;(1<<log)<=ne;log++)
^
user.cpp:53:20: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<<’
for (log=1;(1<<log)<=ne;log++)
^
user.cpp:53:32: error: no post-increment operator for type
for (log=1;(1<<log)<=ne;log++)
^
user.cpp:54:24: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<<’
for (i=1;i+(1<<log)-1<=n;i++)
^
user.cpp:56:23: error: invalid types ‘int [20][<unresolved overloaded function type>]’ for array subscript
rmq[i][log]=rmq[i][log-1];
^
user.cpp:56:36: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator-’
rmq[i][log]=rmq[i][log-1];
^
user.cpp:57:31: error: invalid types ‘int [20][<unresolved overloaded function type>]’ for array subscript
if (niv[rmq[i][log]]>niv[rmq[i+(1<<(log-1))][log-1]])
^
user.cpp:57:53: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator-’
if (niv[rmq[i][log]]>niv[rmq[i+(1<<(log-1))][log-1]])
^
user.cpp:57:62: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator-’
if (niv[rmq[i][log]]>niv[rmq[i+(1<<(log-1))][log-1]])
^
user.cpp:58:27: error: invalid types ‘int [20][<unresolved overloaded function type>]’ for array subscript
rmq[i][log]=rmq[i+(1<<(log-1))][log-1];
^
user.cpp:58:44: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator-’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !