Borderou de evaluare (job #1282854)

Utilizator SmarandaMaria Pandele Smaranda Data 4 decembrie 2014 20:11:06
Problema CT Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:24:52: error: ‘int log [100004]’ redeclared as different kind of symbol int euler [2 * N], pos [N], rmq [20][2 * N], log [N], level [N], s [N], aib [N], first [N], second [N]; ^ 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:110:1: error: previous declaration of ‘double log(double)’ __MATHCALL (log,, (_Mdouble_ __x)); ^ user.cpp: In function ‘void makeRmq()’: user.cpp:62:15: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript log [i] = log [i >> 1] + 1; ^ user.cpp:62:30: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript log [i] = log [i >> 1] + 1; ^ user.cpp: In function ‘int lca(int, int)’: user.cpp:82:15: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript k = log [d]; ^ user.cpp: In function ‘void read()’: user.cpp:30:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d%d", &n, &m); ^ user.cpp:32:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d%d", &x, &y); ^ user.cpp: In function ‘void solve()’: user.cpp:114:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d%d", &x, &y); ^ user.cpp: In function ‘int main()’: user.cpp:146:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("ct.in", "r", stdin); ^ user.cpp:147:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("ct.out", "w", stdout); ^ user.cpp:149:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &T); ^

Ceva nu functioneaza?