Submission #79225

#TimeUsernameProblemLanguageResultExecution timeMemory
79225PlurmAliens (IOI07_aliens)C++11
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; enum dir{ up, down, lleft, rright }; int n; const pair<int,int> NOPE = make_pair(-1,-1); map<pair<long long,long long>,bool> mp; bool query(long long x,long long y){ if(x <= 0 || y <= 0 || x > n || y > n) return false; if(mp.find(make_pair(x,y)) != mp.end()) return mp[make_pair(x,y)]; printf("examine %lld %lld\n",x,y); fflush(stdout); char in[8]; scanf("%s",in); mp[make_pair(x,y)] = in[0] == 't'; return in[0] == 't'; } pair<long long,long long> search(long long x,long long y,dir d){ int sstate = 0; if(d == up){ for(long long i = 1; y+i <= (long long)n; i *= 2ll){ if(query(x,y+i)){ if(sstate == 1){ return make_pair(x,y+i); } }else{ if(sstate == 0) sstate = 1; } } return NOPE; }else if(d == down){ for(long long i = 1; y-i > 0ll; i *= 2ll){ if(query(x,y-i)){ if(sstate == 1){ return make_pair(x,y-i); } }else{ if(sstate == 0) sstate = 1; } } return NOPE; }else if(d == lleft){ for(long long i = 1; x-i > 0ll; i *= 2ll){ if(query(x-i,y)){ if(sstate == 1){ return make_pair(x-i,y); } }else{ if(sstate == 0) sstate = 1; } } return NOPE; }else{ for(long long i = 1; x+i <= (long long)n; i *= 2ll){ if(query(x+i,y)){ if(sstate == 1){ return make_pair(x+i,y); } }else{ if(sstate == 0) sstate = 1; } } return NOPE; } } long long getsidelength(long long x,long long y){ long long byu = -1ll; long long byd = -1ll; for(long long i = 1; ; i *= 2ll){ if(!query(x,y+i)){ long long hi = min(i,n-y); long long lo = 0ll; long long mid; while(lo < hi){ mid = (lo + hi)/2ll; if(query(x,y+mid)){ lo = mid+1ll; }else{ hi = mid; } } byu = y+lo; break; } } for(long long i = 1; ; i *= 2ll){ if(!query(x,y-i)){ long long hi = min(i,y); long long lo = 0ll; long long mid; while(lo < hi){ mid = (lo + hi)/2ll; if(query(x,y-mid)){ lo = mid+1ll; }else{ hi = mid; } } byd = y-lo; break; } } return byu - byd - 1ll; } int main(){ scanf("%d",&n); long long x0,y0; scanf("%lld%lld",&x0,&y0); long long m = getsidelength(x0,y0); //printf("%lld\n",m); auto v0 = search(x0,y0,up); auto v1 = search(x0,y0,down); auto v2 = search(x0,y0,lleft); auto v3 = search(x0,y0,rright); int mask = 0; if(v0 != NOPE) mask++; mask *= 2; if(v1 != NOPE) mask++; mask *= 2; if(v2 != NOPE) mask++; mask *= 2; if(v3 != NOPE) mask++; pair<long long,long long> nxt; //printf("DBG %d\n",mask); switch(mask){ case 5: nxt = search(v1.first,v1.second,down); if(nxt == NOPE){ nxt.first = x0 + m; nxt.second = y0 - m; }else{ nxt.first = v1.first + 2ll*m; nxt.second = v1.second; } break; case 6: nxt = search(v1.first,v1.second,down); if(nxt == NOPE){ nxt.first = x0 - m; nxt.second = y0 - m; }else{ nxt.first = v1.first - 2ll*m; nxt.second = v1.second; } break; case 7: nxt = v1; break; case 9: nxt = search(v0.first,v0.second,up); if(nxt == NOPE){ nxt.first = x0 + m; nxt.second = y0 + m; }else{ nxt.first = v0.first + 2ll*m; nxt.second = v0.second; } break; case 10: nxt = search(v0.first,v0.second,up); if(nxt == NOPE){ nxt.first = x0 - m; nxt.second = y0 + m; }else{ nxt.first = v0.first - 2ll*m; nxt.second = v0.second; } break; case 11: nxt = v0; break; case 13: nxt = v3; break; case 14: nxt = v2; break; case 15: nxt = make_pair(x0,y0); break; } long long x = nxt.first; long long y = nxt.second; //printf("DBGDBG %d %d\n",x,y); long long lo = 0; long long hi = m+1; long long mid; long long byu = 0; long long byd = 0; long long bxl = 0; long long bxr = 0; while(lo < hi){ mid = (lo + hi)/2ll; if(query(x,y+mid)){ lo = mid+1ll; }else{ hi = mid; } } byu = y+lo; lo = 0ll; hi = m+1ll; while(lo < hi){ mid = (lo + hi)/2ll; if(query(x,y-mid)){ lo = mid+1ll; }else{ hi = mid; } } byd = y-lo; lo = 0ll; hi = m+1ll; while(lo < hi){ mid = (lo + hi)/2ll; if(query(x-mid,y)){ lo = mid+1ll; }else{ hi = mid; } } bxl = x-lo; lo = 0ll; hi = m+1ll; while(lo < hi){ mid = (lo + hi)/2ll; if(query(x+mid,y)){ lo = mid+1ll; }else{ hi = mid; } } bxr = x+lo; printf("solution %lld %lld\n",(bxl + bxr)/2ll,(byd + byu)/2ll); return 0; }

Compilation message (stderr)

aliens.cpp: In function 'int main()':
aliens.cpp:117:8: error: no match for 'operator!=' (operand types are 'std::pair<long long int, long long int>' and 'const std::pair<int, int>')
  if(v0 != NOPE) mask++;
     ~~~^~~~~~~
In file included from /usr/include/c++/7/regex:62:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:110,
                 from aliens.cpp:1:
/usr/include/c++/7/bits/regex.h:951:5: note: candidate: template<class _BiIter> bool std::__cxx11::operator!=(const std::__cxx11::sub_match<_BiIter>&, const std::__cxx11::sub_match<_BiIter>&)
     operator!=(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
     ^~~~~~~~
/usr/include/c++/7/bits/regex.h:951:5: note:   template argument deduction/substitution failed:
aliens.cpp:117:11: note:   'std::pair<long long int, long long int>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
  if(v0 != NOPE) mask++;
           ^~~~
In file included from /usr/include/c++/7/regex:62:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:110,
                 from aliens.cpp:1:
/usr/include/c++/7/bits/regex.h:1029:5: note: candidate: template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator!=(std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const std::__cxx11::sub_match<_BiIter>&)
     operator!=(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
     ^~~~~~~~
/usr/include/c++/7/bits/regex.h:1029:5: note:   template argument deduction/substitution failed:
aliens.cpp:117:11: note:   'std::pair<long long int, long long int>' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
  if(v0 != NOPE) mask++;
           ^~~~
In file included from /usr/include/c++/7/regex:62:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:110,
                 from aliens.cpp:1:
/usr/include/c++/7/bits/regex.h:1109:5: note: candidate: template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator!=(const std::__cxx11::sub_match<_BiIter>&, std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)
     operator!=(const sub_match<_Bi_iter>& __lhs,
     ^~~~~~~~
/usr/include/c++/7/bits/regex.h:1109:5: note:   template argument deduction/substitution failed:
aliens.cpp:117:11: note:   'std::pair<long long int, long long int>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
  if(v0 != NOPE) mask++;
           ^~~~
In file included from /usr/include/c++/7/regex:62:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:110,
                 from aliens.cpp:1:
/usr/include/c++/7/bits/regex.h:1186:5: note: candidate: template<class _Bi_iter> bool std::__cxx11::operator!=(const typename std::iterator_traits<_Iter>::value_type*, const std::__cxx11::sub_match<_BiIter>&)
     operator!=(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
     ^~~~~~~~
/usr/include/c++/7/bits/regex.h:1186:5: note:   template argument deduction/substitution failed:
aliens.cpp:117:11: note:   'const std::pair<int, int>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
  if(v0 != NOPE) mask++;
           ^~~~
In file included from /usr/include/c++/7/regex:62:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:110,
                 from aliens.cpp:1:
/usr/include/c++/7/bits/regex.h:1260:5: note: candidate: template<class _Bi_iter> bool std::__cxx11::operator!=(const std::__cxx11::sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)
     operator!=(const sub_match<_Bi_iter>& __lhs,
     ^~~~~~~~
/usr/include/c++/7/bits/regex.h:1260:5: note:   template argument deduction/substitution failed:
aliens.cpp:117:11: note:   'std::pair<long long int, long long int>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
  if(v0 != NOPE) mask++;
           ^~~~
In file included from /usr/include/c++/7/regex:62:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:110,
                 from aliens.cpp:1:
/usr/include/c++/7/bits/regex.h:1337:5: note: candidate: template<class _Bi_iter> bool std::__cxx11::operator!=(const typename std::iterator_traits<_Iter>::value_type&, const std::__cxx11::sub_match<_BiIter>&)
     operator!=(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
     ^~~~~~~~
/usr/include/c++/7/bits/regex.h:1337:5: note:   template argument deduction/substitution failed:
aliens.cpp:117:11: note:   'const std::pair<int, int>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
  if(v0 != NOPE) mask++;
           ^~~~
In file included from /usr/include/c++/7/regex:62:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:110,
                 from aliens.cpp:1:
/usr/include/c++/7/bits/regex.h:1417:5: note: candidate: template<class _Bi_iter> bool std::__cxx11::operator!=(const std::__cxx11::sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)
     operator!=(const sub_match<_Bi_iter>& __lhs,
     ^~~~~~~~
/usr/include/c++/7/bits/regex.h:1417:5: note:   template argument deduction/substitution failed:
aliens.cpp:117:11: note:   'std::pair<long long int, long long int>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
  if(v0 != NOPE) mask++;
           ^~~~
In file included from /usr/include/c++/7/regex:62:0,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:110,
                 from aliens.cpp:1:
/usr/include/c++/7/bits/regex.h:1944:5: note: candidate: template<class _Bi_iter, class _Alloc> bool std::__cxx11::operator!=(const std::__cxx11::match_results<_BiIter, _Alloc>&, const std::__cxx11::match_results<_BiIter, _Alloc>&)
     operator!=(const match_results<_Bi_iter, _Alloc>& __m1,
     ^~~~~~~~
/usr/include/c++/7/bits/regex.h:1944:5: note:   template argument deduction/substitution failed:
aliens.cpp:117:11: note:   'std::pair<long long int, long long int>' is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
  if(v0 != NOPE) mask++;
           ^~~~
In file included from /usr/include/c++/7/iosfwd:40:0,
                 from /usr/include/c++/7/ios:38,
                 from /usr/include/c++/7/istream:38,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from aliens.cpp:1:
/usr/include/c++/7/bits/postypes.h:221:5: note: candidate: template<class _StateT> bool std::operator!=(const std::fpos<_StateT>&, const std::fpos<_StateT>&)
     operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
     ^~~~~~~~
/usr/include/c++/7/bits/postypes.h:221:5: note:   template argument deduction/substitution failed:
aliens.cpp:117:11: note:   'std::pair<long long int, long long int>' is not derived from 'const std::fpos<_StateT>'
  if(v0 != NOPE) mask++;
           ^~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:64:0,
                 from /usr/include/c++/7/bits/char_traits.h:39,
                 from /usr/include/c++/7/ios:40,
                 from /usr/include/c++/7/istream:38,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from aliens.cpp:1:
/usr/include/c++/7/bits/stl_pair.h:456:5: note: candidate: template<class _T1, class _T2> constexpr bool std::operator!=(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
     operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
     ^~~~~~~~
/usr/include/c++/7/bits/stl_pair.h:456:5: note:   template argument deduction/substitution failed:
aliens.cpp:117:11: note:   deduced conflicting types for parameter '_T1' ('long long int' and 'int')
  if(v0 != NOPE) mask++;
           ^~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/7/bits/char_traits.h:39,
                 from /usr/include/c++/7/ios:40,
                 from /usr/include/c++/7/istream:38,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from aliens.cpp:1:
/usr/include/c++/7/bits/stl_iterator.h:311:5: note: candidate: template<class _Iterator> bool std::operator!=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
     operator!=(const reverse_iterator<_Iterator>& __x,
     ^~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:311:5: note:   template argument deduction/substitution failed:
aliens.cpp:117:11: note:   'std::pair<long long int, long long int>' is not derived from 'const std::reverse_iterator<_Iterator>'
  if(v0 != NOPE) mask++;
           ^~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/7/bits/char_traits.h:39,
                 from /usr/include/c++/7/ios:40,
                 from /usr/include/c++/7/istream:38,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from aliens.cpp:1:
/usr/include/c++/7/bits/stl_iterator.h:349:5: note: candidate: template<class _IteratorL, class _IteratorR> bool std::operator!=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)
     operator!=(const reverse_iterator<_IteratorL>& __x,
     ^~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:349:5: note:   template argument deduction/substitution failed:
aliens.cpp:117:11: note:   'std::pair<long long int, long long int>' is not derived from 'const std::reverse_iterator<_Iterator>'
  if(v0 != NOPE) mask++;
           ^~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/7/bits/char_traits.h:39,
                 from /usr/include/c++/7/ios:40,
                 from /usr/include/c++/7/istream:38,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from aliens.cpp:1:
/usr/include/c++/7/bits/stl_iterator.h:1130:5: note: candidate: template<class _IteratorL, class _IteratorR> bool std::operator!=(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorR>&)
     operator!=(const move_iterator<_IteratorL>& __x,
     ^~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:1130:5: note:   template argument deduction/substitution failed:
aliens.cpp:117:11: note:   'std::pair<long long int, long long int>' is not derived from 'const std::move_iterator<_IteratorL>'
  if(v0 != NOPE) mask++;
           ^~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/7/bits/char_traits.h:39,
                 from /usr/include/c++/7/ios:40,
                 from /usr/include/c++/7/istream:38,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from aliens.cpp:1:
/usr/include/c++/7/bits/stl_iterator.h:1136:5: note: candidate: template<class _Iterator> bool std::operator!=(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorL>&)
     operator!=(const move_iterator<_Iterator>& __x,
     ^~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:1136:5: note:   template argument deduction/substitution failed:
aliens.cpp:117:11: note:   'std::pair<long long int, long long int>' is not derived from 'const std::move_iterator<_IteratorL>'
  if(v0 != NOPE) mask++;
           ^~~~
In file included from /usr/include/c++/7/string:41:0,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/istream:38,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from aliens.cpp:1:
/usr/include/c++/7/bits/allocator.h:158:5: note: candidate: template<class _T1, class _T2> bool std::operator!=(const std::allocator<_CharT>&, const std::allocator<_T2>&)
     operator!=(const allocator<_T1>&, const allocator<_T2>&)
     ^~~~~~~~
/usr/include/c++/7/bits/allocator.h:158:5: note:   template argument deduction/substitution failed:
aliens.cpp:117:11: note:   'std::pair<long long int, long long int>' is not derived from 'const std::allocator<_CharT>'
  if(v0 != NOPE) mask++;
           ^~~~
In file included from /usr/include/c++/7/string:41:0,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/istream:38,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from aliens.cpp:1:
/usr/include/c++/7/bits/allocator.h:164:5: note: candidate: template<class _Tp> bool std::operator!=(const std::allocator<_CharT>&, const std::allocator<_CharT>&)
     operator!=(const allocator<_Tp>&, const allocator<_Tp>&)
     ^~~~~~~~
/usr/include/c++/7/bits/allocator.h:164:5: note:   template argument deduction/substitution failed:
aliens.cpp:117:11: note:   'std::pair<long long int, long long int>' is not derived from 'const std::allocator<_CharT>'
  if(v0 != NOPE) mask++;
           ^~~~
In file included from /usr/include/c++/7/string:52:0,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/istream:38,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from aliens.cpp:1:
/usr/include/c++/7/bits/basic_string.h:6044:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
     operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
     ^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6044:5: note:   template argument deduction/substitution failed:
aliens.cpp:117:11: note:   'std::pair<long long int, long long int>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>'
  if(v0 != NOPE) mask++;
           ^~~~
In file included from /usr/include/c++/7/string:52:0,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/istream:38,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from aliens.cpp:1:
/usr/include/c++/7/bits/basic_string.h:6057:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const _CharT*, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
     operator!=(const _CharT* __lhs,
     ^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6057:5: note:   template argument deduction/substitution failed:
aliens.cpp:117:11: note:   mismatched types 'const _CharT*' and 'std::pair<long long int, long long int>'
  if(v0 != NOPE) mask++;
           ^~~~
In file included from /usr/include/c++/7/string:52:0,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/istream:38,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from aliens.cpp:1:
/usr/include/c++/7/bits/basic_string.h:6069:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)
     operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
     ^~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6069:5: note:   template argument deduction/substitution failed:
aliens.cpp:117:11: note:   'std::pair<long long int, long long int>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>'
  if(v0 != NOPE) mask++;
           ^~~~
In file included from /usr/include/c++/7/bits/ios_base.h:46:0,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/istream:38,
                 from /usr/include/c++/7/sstream:38,
                 from /usr/include/c++/7/complex:45,
                 from /usr/include/c++/7/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
                 from aliens.cpp:1:
/usr/include/c++/7/system_error:319:3: note: candidate: bool std::operator!=(const std::error_code&, const std::error_code&)
   operator!=(const error_code& __lhs, const error_code& __rhs) noexcept
   ^~~~~~~~
/usr/include/c++/7/system_error:319:3: note:   no known conversion for argument 1 from 'std::pair<long long int, long long int>' to 'const std::error_code&'
/usr/include/c++/7/system_error:323:3: note: candidate: bool std::operator!=(const std::error_code&, const std::error_condition&)
   operator!=(const error_code& __lhs, const error_condition& __rhs) noexcept
   ^~~~~~~~
/usr/include/c++/7/system_error:323: