Borderou de evaluare (job #1169629)

Utilizator tudorv96Tudor Varan tudorv96 Data 11 aprilie 2014 19:40:56
Problema Matrice3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:12:83: error: ‘short int y1’ redeclared as different kind of symbol short rmq[logN][logN][N][N], d[N][N], dv[N][N], dh[N][N], m, n, q, bp[N], x1, x2, y1, y2; ^ 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:242:1: error: previous declaration of ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘bool go(int)’: user.cpp:16:45: error: invalid operands of types ‘short int’ and ‘double(double)throw ()’ to binary ‘operator-’ int difx = x2 - x1 - L + 1, dify = y2 - y1 - L + 1, pwx = bp[difx], pwy = bp[dify]; ^ user.cpp:17:26: error: ‘pwx’ was not declared in this scope return (max(max (rmq[pwx][pwy][x1 + L][y1 + L], rmq[pwx][pwy][x2 - (1 << pwx)][y1 + L]), max(rmq[pwx][pwy][x1 + L][y2 - (1 << pwy)], rmq[pwx][pwy][x2 - (1 << pwx)][y2 - (1 << pwy)])) >= L); ^ user.cpp:17:31: error: ‘pwy’ was not declared in this scope return (max(max (rmq[pwx][pwy][x1 + L][y1 + L], rmq[pwx][pwy][x2 - (1 << pwx)][y1 + L]), max(rmq[pwx][pwy][x1 + L][y2 - (1 << pwy)], rmq[pwx][pwy][x2 - (1 << pwx)][y2 - (1 << pwy)])) >= L); ^ user.cpp:17:49: warning: pointer to a function used in arithmetic [-Wpointer-arith] return (max(max (rmq[pwx][pwy][x1 + L][y1 + L], rmq[pwx][pwy][x2 - (1 << pwx)][y1 + L]), max(rmq[pwx][pwy][x1 + L][y2 - (1 << pwy)], rmq[pwx][pwy][x2 - (1 << pwx)][y2 - (1 << pwy)])) >= L); ^ user.cpp:17:89: warning: pointer to a function used in arithmetic [-Wpointer-arith] return (max(max (rmq[pwx][pwy][x1 + L][y1 + L], rmq[pwx][pwy][x2 - (1 << pwx)][y1 + L]), max(rmq[pwx][pwy][x1 + L][y2 - (1 << pwy)], rmq[pwx][pwy][x2 - (1 << pwx)][y2 - (1 << pwy)])) >= L); ^ user.cpp:16:9: warning: unused variable ‘difx’ [-Wunused-variable] int difx = x2 - x1 - L + 1, dify = y2 - y1 - L + 1, pwx = bp[difx], pwy = bp[dify]; ^ user.cpp:16:33: warning: unused variable ‘dify’ [-Wunused-variable] int difx = x2 - x1 - L + 1, dify = y2 - y1 - L + 1, pwx = bp[difx], pwy = bp[dify]; ^ user.cpp: In function ‘int main()’: user.cpp:59:13: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’ fin >> x1 >> y1 >> x2 >> y2; ^ In file included from /usr/local/include/c++/4.8.0/fstream:38:0, from user.cpp:1: /usr/local/include/c++/4.8.0/istream:872:5: error: initializing argument 1 of ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = double(double)throw ()]’ operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x) ^ user.cpp:60:45: error: invalid operands of types ‘short int’ and ‘double(double)throw ()’ to binary ‘operator-’ int lenx = x2 - x1 + 1, leny = y2 - y1 + 1, sol = 0; ^ user.cpp:62:17: error: ‘sol’ was not declared in this scope if (sol + step < min(lenx, leny) && go(sol + step))

Ceva nu functioneaza?