Borderou de evaluare (job #2030191)

Utilizator cella.florescuCella Florescu cella.florescu Data 1 octombrie 2017 11:50:41
Problema Camere Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:11:22: error: ‘int y1’ redeclared as different kind of symbol int n, m, q, x1, x2, y1, y2, cam; ^ In file included from /usr/include/features.h:357:0, from /usr/include/assert.h:37, from /usr/include/c++/4.8/cassert:43, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:33, from user.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘int out(int)’: user.cpp:21:83: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] return pos_repr[c].first < x1 || pos_repr[c].first > x2 || pos_repr[c].second < y1 || pos_repr[c].second > y2; ^ user.cpp: In function ‘int main()’: user.cpp:49:11: 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/include/c++/4.8/sstream:38:0, from /usr/include/c++/4.8/complex:45, from /usr/include/c++/4.8/ccomplex:38, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:52, from user.cpp:1: /usr/include/c++/4.8/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:50:65: warning: pointer to a function used in arithmetic [-Wpointer-arith] int ans = repr[x2][y2] - repr[x1 - 1][y2] - repr[x2][y1 - 1] + repr[x1 - 1][y1 - 1]; ^ user.cpp:50:66: error: invalid types ‘int [2002][double (*)(double)throw ()]’ for array subscript int ans = repr[x2][y2] - repr[x1 - 1][y2] - repr[x2][y1 - 1] + repr[x1 - 1][y1 - 1]; ^ user.cpp:50:88: warning: pointer to a function used in arithmetic [-Wpointer-arith] int ans = repr[x2][y2] - repr[x1 - 1][y2] - repr[x2][y1 - 1] + repr[x1 - 1][y1 - 1]; ^ user.cpp:50:89: error: invalid types ‘int [2002][double (*)(double)throw ()]’ for array subscript int ans = repr[x2][y2] - repr[x1 - 1][y2] - repr[x2][y1 - 1] + repr[x1 - 1][y1 - 1]; ^ user.cpp:51:20: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] for (int i = y1; i <= y2; ++i) { ^ user.cpp:64:26: error: invalid types ‘int [2002][double(double)throw ()]’ for array subscript int c = num[i][y1]; ^

Ceva nu functioneaza?