palindrome.cpp: In function 'long long int Get(int)':
palindrome.cpp:10:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (pos < 0) return -1; if (pos >= N) return -2;
^~
palindrome.cpp:10:26: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if (pos < 0) return -1; if (pos >= N) return -2;
^~
palindrome.cpp: In function 'int main()':
palindrome.cpp:27:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k = 0; k < x[j].size(); k++) {
~~^~~~~~~~~~~~~
palindrome.cpp:36:94: error: no matching function for call to 'max(long long int&, long long unsigned int)'
for (int j = 0; j < cnt; j++) { x[j] = y[j]; maxn = max(maxn, 1LL * x[j].size()*(i * 2 + 1)); } cnts = cnt;
^
In file included from /usr/include/c++/7/bits/char_traits.h:39:0,
from /usr/include/c++/7/ios:40,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from palindrome.cpp:1:
/usr/include/c++/7/bits/stl_algobase.h:219:5: note: candidate: template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^~~
/usr/include/c++/7/bits/stl_algobase.h:219:5: note: template argument deduction/substitution failed:
palindrome.cpp:36:94: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'long long unsigned int')
for (int j = 0; j < cnt; j++) { x[j] = y[j]; maxn = max(maxn, 1LL * x[j].size()*(i * 2 + 1)); } cnts = cnt;
^
In file included from /usr/include/c++/7/bits/char_traits.h:39:0,
from /usr/include/c++/7/ios:40,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from palindrome.cpp:1:
/usr/include/c++/7/bits/stl_algobase.h:265:5: note: candidate: template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^~~
/usr/include/c++/7/bits/stl_algobase.h:265:5: note: template argument deduction/substitution failed:
palindrome.cpp:36:94: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'long long unsigned int')
for (int j = 0; j < cnt; j++) { x[j] = y[j]; maxn = max(maxn, 1LL * x[j].size()*(i * 2 + 1)); } cnts = cnt;
^
In file included from /usr/include/c++/7/algorithm:62:0,
from palindrome.cpp:4:
/usr/include/c++/7/bits/stl_algo.h:3462:5: note: candidate: template<class _Tp> constexpr _Tp std::max(std::initializer_list<_Tp>)
max(initializer_list<_Tp> __l)
^~~
/usr/include/c++/7/bits/stl_algo.h:3462:5: note: template argument deduction/substitution failed:
palindrome.cpp:36:94: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
for (int j = 0; j < cnt; j++) { x[j] = y[j]; maxn = max(maxn, 1LL * x[j].size()*(i * 2 + 1)); } cnts = cnt;
^
In file included from /usr/include/c++/7/algorithm:62:0,
from palindrome.cpp:4:
/usr/include/c++/7/bits/stl_algo.h:3468:5: note: candidate: template<class _Tp, class _Compare> constexpr _Tp std::max(std::initializer_list<_Tp>, _Compare)
max(initializer_list<_Tp> __l, _Compare __comp)
^~~
/usr/include/c++/7/bits/stl_algo.h:3468:5: note: template argument deduction/substitution failed:
palindrome.cpp:36:94: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
for (int j = 0; j < cnt; j++) { x[j] = y[j]; maxn = max(maxn, 1LL * x[j].size()*(i * 2 + 1)); } cnts = cnt;
^
palindrome.cpp:39:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (int i = 0; i < 100009; i++) x[i].clear(); cnts = 1;
^~~
palindrome.cpp:39:49: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
for (int i = 0; i < 100009; i++) x[i].clear(); cnts = 1;
^~~~
palindrome.cpp:48:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k = 0; k < x[j].size(); k++) {
~~^~~~~~~~~~~~~
palindrome.cpp:57:94: error: no matching function for call to 'max(long long int&, long long unsigned int)'
for (int j = 0; j < cnt; j++) { x[j] = y[j]; maxn = max(maxn, 1LL * x[j].size()*(i * 2 + 2)); }
^
In file included from /usr/include/c++/7/bits/char_traits.h:39:0,
from /usr/include/c++/7/ios:40,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from palindrome.cpp:1:
/usr/include/c++/7/bits/stl_algobase.h:219:5: note: candidate: template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^~~
/usr/include/c++/7/bits/stl_algobase.h:219:5: note: template argument deduction/substitution failed:
palindrome.cpp:57:94: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'long long unsigned int')
for (int j = 0; j < cnt; j++) { x[j] = y[j]; maxn = max(maxn, 1LL * x[j].size()*(i * 2 + 2)); }
^
In file included from /usr/include/c++/7/bits/char_traits.h:39:0,
from /usr/include/c++/7/ios:40,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from palindrome.cpp:1:
/usr/include/c++/7/bits/stl_algobase.h:265:5: note: candidate: template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^~~
/usr/include/c++/7/bits/stl_algobase.h:265:5: note: template argument deduction/substitution failed:
palindrome.cpp:57:94: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'long long unsigned int')
for (int j = 0; j < cnt; j++) { x[j] = y[j]; maxn = max(maxn, 1LL * x[j].size()*(i * 2 + 2)); }
^
In file included from /usr/include/c++/7/algorithm:62:0,
from palindrome.cpp:4:
/usr/include/c++/7/bits/stl_algo.h:3462:5: note: candidate: template<class _Tp> constexpr _Tp std::max(std::initializer_list<_Tp>)
max(initializer_list<_Tp> __l)
^~~
/usr/include/c++/7/bits/stl_algo.h:3462:5: note: template argument deduction/substitution failed:
palindrome.cpp:57:94: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
for (int j = 0; j < cnt; j++) { x[j] = y[j]; maxn = max(maxn, 1LL * x[j].size()*(i * 2 + 2)); }
^
In file included from /usr/include/c++/7/algorithm:62:0,
from palindrome.cpp:4:
/usr/include/c++/7/bits/stl_algo.h:3468:5: note: candidate: template<class _Tp, class _Compare> constexpr _Tp std::max(std::initializer_list<_Tp>, _Compare)
max(initializer_list<_Tp> __l, _Compare __comp)
^~~
/usr/include/c++/7/bits/stl_algo.h:3468:5: note: template argument deduction/substitution failed:
palindrome.cpp:57:94: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
for (int j = 0; j < cnt; j++) { x[j] = y[j]; maxn = max(maxn, 1LL * x[j].size()*(i * 2 + 2)); }
^