0_0_37595219_16736.cpp: In function 'void solve()':
0_0_37595219_16736.cpp:36:61: error: no match for 'operator=' (operand types are 'std::pair<int, int>' and 'int')
for(int j = 1; j <= n; j ++ ) cin >> s[i][j], match[i][j] = 0;
^
0_0_37595219_16736.cpp:36:61: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_37595219_16736.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:158:7: note: std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(const std::pair<_T1, _T2>&) [with _T1 = int; _T2 = int]
operator=(const pair& __p)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:158:7: note: no known conversion for argument 1 from 'int' to 'const std::pair<int, int>&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:166:7: note: std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(std::pair<_T1, _T2>&&) [with _T1 = int; _T2 = int]
operator=(pair&& __p)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:166:7: note: no known conversion for argument 1 from 'int' to 'std::pair<int, int>&&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:177:2: note: template<class _U1, class _U2> std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(const std::pair<_U1, _U2>&) [with _U1 = _U1; _U2 = _U2; _T1 = int; _T2 = int]
operator=(const pair<_U1, _U2>& __p)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:177:2: note: template argument deduction/substitution failed:
0_0_37595219_16736.cpp:36:61: note: mismatched types 'const std::pair<_T1, _T2>' and 'int'
for(int j = 1; j <= n; j ++ ) cin >> s[i][j], match[i][j] = 0;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_37595219_16736.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:186:2: note: template<class _U1, class _U2> std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(std::pair<_U1, _U2>&&) [with _U1 = _U1; _U2 = _U2; _T1 = int; _T2 = int]
operator=(pair<_U1, _U2>&& __p)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:186:2: note: template argument deduction/substitution failed:
0_0_37595219_16736.cpp:36:61: note: mismatched types 'std::pair<_T1, _T2>' and 'int'
for(int j = 1; j <= n; j ++ ) cin >> s[i][j], match[i][j] = 0;
^
|