Borderou de evaluare (job #2098153)

Utilizator mariusn01Marius Nicoli mariusn01 Data 2 ianuarie 2018 14:41:34
Problema Substr Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:17:23: error: ‘int log’ redeclared as different kind of symbol int n, k, maxim, sol, log, x, y; ^ 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/iosfwd:38, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, 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 ‘int main()’: user.cpp:29:17: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses] fin>>n>>k>>s+1; ^ user.cpp:30:9: error: overloaded function with no contextual type information log = 0; ^ user.cpp:31:18: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<<’ while ((1 << log) <= n) ^ user.cpp:32:12: error: no post-increment operator for type log++; /// 2^log > n ^ user.cpp:41:28: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<=’ for (int lg = 0; lg <= log; lg++) { ^ user.cpp:68:16: error: invalid types ‘int [18][170000][<unresolved overloaded function type>]’ for array subscript P[a[log][i]] = i; ^ user.cpp:79:27: error: cannot resolve overloaded function ‘log’ based on conversion to type ‘int’ for (int lg = log; lg >= 0 && x <= n && y<=n; lg--) ^

Ceva nu functioneaza?