Borderou de evaluare (job #977854)
Utilizator | Data | 26 iulie 2013 21:46:27 | |
---|---|---|---|
Problema | Radiatie | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:12:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]
};
^
user.cpp:15:142: error: ‘int log2 [15002]’ redeclared as different kind of symbol
int E[MAX_N*2], d[MAX_N*2], F[MAX_N], H[MAX_N], level[MAX_N], pos[MAX_N], dp[16][MAX_N], T[16][MAX_N], A[MAX_N][16], P[MAX_N][16], log2[MAX_N];
^
In file included from /usr/include/features.h:346:0,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/os_defines.h:39,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/c++config.h:420,
from /usr/local/include/c++/4.8.0/iosfwd:38,
from /usr/local/include/c++/4.8.0/ios:38,
from /usr/local/include/c++/4.8.0/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/include/bits/mathcalls.h:145:1: error: previous declaration of ‘double log2(double)’
__MATHCALL (log2,, (_Mdouble_ __x));
^
user.cpp: In function ‘int LCA(int, int)’:
user.cpp:47:23: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
int k = log2[x-y+1], t = 0;
^
user.cpp:49:9: error: ‘t’ was not declared in this scope
t = P[x][k];
^
user.cpp:50:10: error: ‘t’ was not declared in this scope
else t = P[y-k+1][k];
^
user.cpp:51:16: error: ‘t’ was not declared in this scope
return pos[t];
^
user.cpp: In function ‘int Max_dist(int, int)’:
user.cpp:57:23: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
int t = log2[k];
^
user.cpp: In function ‘int main()’:
user.cpp:102:15: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
log2[i] = log2[i/2] + 1;
^
user.cpp:102:27: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
log2[i] = log2[i/2] + 1;
^
user.cpp:104:29: warning: left operand of comma operator has no effect [-Wunused-value]
for(int i = 1, k = 1; i <= M, k < N; ++i)
^
user.cpp: In function ‘int LCA(int, int)’:
user.cpp:52: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 !