aliens.cpp: In function 'long long int take_photos(int, int, int, std::vector<int>, std::vector<int>)':
aliens.cpp:59:17: error: 'pnts' was not declared in this scope; did you mean 'puts'?
59 | pnts.push_back({r[i], c[i]});
| ^~~~
| puts
aliens.cpp:61:15: error: 'pnts' was not declared in this scope; did you mean 'puts'?
61 | sort((pnts).begin(), pnts.end(), [](pair<long long, long long> pr, pair<long long, long long> dr){
| ^~~~
| puts
aliens.cpp:87:45: error: no matching function for call to 'max(int64_t, long long int)'
87 | ch.add(line(x-sq(max((int64_t)0, a[i].second-a[i+1].first+1))+sq(a[i+1].first-1)+lamb, -2*a[i+1].first), tk+1);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/vector:60,
from aliens.h:3,
from aliens.cpp:1:
/usr/include/c++/11/bits/stl_algobase.h:254:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
254 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/11/bits/stl_algobase.h:254:5: note: template argument deduction/substitution failed:
aliens.cpp:87:45: note: deduced conflicting types for parameter 'const _Tp' ('long int' and 'long long int')
87 | ch.add(line(x-sq(max((int64_t)0, a[i].second-a[i+1].first+1))+sq(a[i+1].first-1)+lamb, -2*a[i+1].first), tk+1);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/vector:60,
from aliens.h:3,
from aliens.cpp:1:
/usr/include/c++/11/bits/stl_algobase.h:300:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/11/bits/stl_algobase.h:300:5: note: template argument deduction/substitution failed:
aliens.cpp:87:45: note: deduced conflicting types for parameter 'const _Tp' ('long int' and 'long long int')
87 | ch.add(line(x-sq(max((int64_t)0, a[i].second-a[i+1].first+1))+sq(a[i+1].first-1)+lamb, -2*a[i+1].first), tk+1);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/vector:62,
from aliens.h:3,
from aliens.cpp:1:
/usr/include/c++/11/bits/stl_algo.h:3461:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(std::initializer_list<_Tp>)'
3461 | max(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/11/bits/stl_algo.h:3461:5: note: template argument deduction/substitution failed:
aliens.cpp:87:45: note: mismatched types 'std::initializer_list<_Tp>' and 'long int'
87 | ch.add(line(x-sq(max((int64_t)0, a[i].second-a[i+1].first+1))+sq(a[i+1].first-1)+lamb, -2*a[i+1].first), tk+1);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/vector:62,
from aliens.h:3,
from aliens.cpp:1:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(std::initializer_list<_Tp>, _Compare)'
3467 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: template argument deduction/substitution failed:
aliens.cpp:87:45: note: mismatched types 'std::initializer_list<_Tp>' and 'long int'
87 | ch.add(line(x-sq(max((int64_t)0, a[i].second-a[i+1].first+1))+sq(a[i+1].first-1)+lamb, -2*a[i+1].first), tk+1);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
aliens.cpp:104:37: error: no matching function for call to 'max(int64_t, long long int)'
104 | ch.add(line(x-sq(max((int64_t)0, a[i].second-a[i+1].first+1))+sq(a[i+1].first-1)+lamb, -2*a[i+1].first), tk+1);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/vector:60,
from aliens.h:3,
from aliens.cpp:1:
/usr/include/c++/11/bits/stl_algobase.h:254:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
254 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/11/bits/stl_algobase.h:254:5: note: template argument deduction/substitution failed:
aliens.cpp:104:37: note: deduced conflicting types for parameter 'const _Tp' ('long int' and 'long long int')
104 | ch.add(line(x-sq(max((int64_t)0, a[i].second-a[i+1].first+1))+sq(a[i+1].first-1)+lamb, -2*a[i+1].first), tk+1);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/vector:60,
from aliens.h:3,
from aliens.cpp:1:
/usr/include/c++/11/bits/stl_algobase.h:300:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/11/bits/stl_algobase.h:300:5: note: template argument deduction/substitution failed:
aliens.cpp:104:37: note: deduced conflicting types for parameter 'const _Tp' ('long int' and 'long long int')
104 | ch.add(line(x-sq(max((int64_t)0, a[i].second-a[i+1].first+1))+sq(a[i+1].first-1)+lamb, -2*a[i+1].first), tk+1);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/vector:62,
from aliens.h:3,
from aliens.cpp:1:
/usr/include/c++/11/bits/stl_algo.h:3461:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(std::initializer_list<_Tp>)'
3461 | max(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/11/bits/stl_algo.h:3461:5: note: template argument deduction/substitution failed:
aliens.cpp:104:37: note: mismatched types 'std::initializer_list<_Tp>' and 'long int'
104 | ch.add(line(x-sq(max((int64_t)0, a[i].second-a[i+1].first+1))+sq(a[i+1].first-1)+lamb, -2*a[i+1].first), tk+1);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/vector:62,
from aliens.h:3,
from aliens.cpp:1:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(std::initializer_list<_Tp>, _Compare)'
3467 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: template argument deduction/substitution failed:
aliens.cpp:104:37: note: mismatched types 'std::initializer_list<_Tp>' and 'long int'
104 | ch.add(line(x-sq(max((int64_t)0, a[i].second-a[i+1].first+1))+sq(a[i+1].first-1)+lamb, -2*a[i+1].first), tk+1);
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
aliens.h:1:9: warning: #pragma once in main file
1 | #pragma once
| ^~~~
aliens_c.h:1:9: warning: #pragma once in main file
1 | #pragma once
| ^~~~