Borderou de evaluare (job #1460595)

Utilizator FlorinHajaFlorin Gabriel Haja FlorinHaja Data 13 iulie 2015 12:30:11
Problema Panda Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:16:5: error: conflicting declaration ‘int A’ int A, B, cmp = 1; ^ user.cpp:13:6: error: ‘A’ has a previous declaration as ‘bool A [501][501]’ bool A[501][501], mancare[501][501]; ^ user.cpp: In function ‘int main()’: user.cpp:69:14: error: cannot bind ‘std::basic_istream<char>’ lvalue to ‘std::basic_istream<char>&&’ f >> A >> B; ^ In file included from /usr/include/c++/4.8/fstream:38:0, 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 = bool [501][501]]’ operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x) ^ user.cpp:70:36: error: no matching function for call to ‘std::vector<std::pair<int, int> >::push_back(std::pair<bool (*)[501], int>)’ M.push_back(make_pair(A, B)); ^ user.cpp:70:36: note: candidates are: In file included from /usr/include/c++/4.8/vector:64:0, from user.cpp:2: /usr/include/c++/4.8/bits/stl_vector.h:901:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>] push_back(const value_type& __x) ^ /usr/include/c++/4.8/bits/stl_vector.h:901:7: note: no known conversion for argument 1 from ‘std::pair<bool (*)[501], int>’ to ‘const value_type& {aka const std::pair<int, int>&}’ /usr/include/c++/4.8/bits/stl_vector.h:919:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>] push_back(value_type&& __x) ^ /usr/include/c++/4.8/bits/stl_vector.h:919:7: note: no known conversion for argument 1 from ‘std::pair<bool (*)[501], int>’ to ‘std::vector<std::pair<int, int> >::value_type&& {aka std::pair<int, int>&&}’

Ceva nu functioneaza?