제출 #244899

#제출 시각아이디문제언어결과실행 시간메모리
244899rrrr10000여행하는 상인 (APIO17_merchant)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n)  for(long long i=0;i<(long long)(n);i++)
#define REP(i,k,n) for(long long i=k;i<(long long)(n);i++)
#define all(a) a.begin(),a.end()
#define pb emplace_back
#define eb emplace_back
#define lb(v,k) (lower_bound(all(v),k)-v.begin())
#define ub(v,k) (upper_bound(all(v),k)-v.begin())
#define fi first
#define se second
#define pi M_PI
#define PQ(T) priority_queue<T>
#define SPQ(T) priority_queue<T,vector<T>,greater<T>>
#define dame(a) {out(a);return 0;}
#define decimal cout<<fixed<<setprecision(15);
#define dupli(a) a.erase(unique(all(a)),a.end())
typedef long long ll;
typedef pair<ll,ll> P;
typedef tuple<ll,ll,ll> PP;
typedef tuple<ll,ll,ll,ll> PPP;
typedef multiset<ll> S;
using vi=vector<ll>;
using vvi=vector<vi>;
using vvvi=vector<vvi>;
using vvvvi=vector<vvvi>;
using vp=vector<P>;
using vvp=vector<vp>;
using vb=vector<bool>;
using vvb=vector<vb>;
const ll inf=1001001001001001001;
const ll INF=1001001001;
const ll mod=1000000007;
const double eps=1e-10;
template<class T> bool chmin(T&a,T b){if(a>b){a=b;return true;}return false;}
template<class T> bool chmax(T&a,T b){if(a<b){a=b;return true;}return false;}
template<class T> void out(T a){cout<<a<<'\n';}
template<class T> void outp(T a){cout<<'('<<a.fi<<','<<a.se<<')'<<'\n';}
template<class T> void outvp(T v){rep(i,v.size())cout<<'('<<v[i].fi<<','<<v[i].se<<')';cout<<'\n';}
template<class T> void outvvp(T v){rep(i,v.size())outvp(v[i]);}
template<class T> void outv(T v){rep(i,v.size()){if(i)cout<<' ';cout<<v[i];}cout<<'\n';}
template<class T> void outvv(T v){rep(i,v.size())outv(v[i]);}
template<class T> bool isin(T x,T l,T r){return (l)<=(x)&&(x)<=(r);}
template<class T> void yesno(T b){if(b)out("yes");else out("no");}
template<class T> void YesNo(T b){if(b)out("Yes");else out("No");}
template<class T> void YESNO(T b){if(b)out("YES");else out("NO");}
template<class T> void noyes(T b){if(b)out("no");else out("yes");}
template<class T> void NoYes(T b){if(b)out("No");else out("Yes");}
template<class T> void NOYES(T b){if(b)out("NO");else out("YES");}
void outs(ll a,ll b){if(a>=inf-100)out(b);else out(a);}
ll gcd(ll a,ll b){if(b==0)return a;return gcd(b,a%b);}
ll modpow(ll a,ll b){ll res=1;a%=mod;while(b){if(b&1)res=res*a%mod;a=a*a%mod;b>>=1;}return res;}
ll nl(long double a){return ((ll)(a*2)+1)/2;}
int main(){
    ll n,m,k;cin>>n>>m>>k;
    vvi v(n,vi(k*2));
    rep(i,n)rep(j,k*2)cin>>v[i][j];
    vvi val(n,vi(n));
    rep(i,n)rep(j,n){
        rep(t,k)if(v[j][t*2+1]!=-1&&v[i][t*2]!=-1)chmax(val[i][j],v[j][t*2+1]-v[i][t*2]);
    }
    vvp g(n);
    rep(i,m){
        ll a,b,c;cin>>a>>b>>c;g[a-1].pb(b-1,c);
    }
    vvi dis(n,vi(n,inf));
    rep(i,n){
        dis[i][i]=0;
        SPQ(P) pq;
        pq.emplace(0,i);
        while(!pq.empty()){
            auto t=pq.top();pq.pop();
            if(dis[t.se]!=t.fi)continue;
            for(auto x:g[t.se])if(chmin(dis[x.fi],t.fi+x.se))pq.emplace(dis[x.fi],x.fi);
        }
    }
    // outvv(dis);outvv(val);
    ll ok=0,ng=1000000005;
    while(ng-ok>1){
        ll md=(ok+ng)/2;
        bool able=false;
        vi dp(n);
        vvi f(n,vi(n,-inf));
        rep(i,n)rep(j,n)if(inf/md>dis[i][j])chmax(f[i][j],val[i][j]-md*dis[i][j]);
        bool dif=true;
        int step=0;
        while(dif){
            dif=false;
            rep(i,n)rep(j,n)if(f[i][j]!=-inf)if(chmax(dp[j],dp[i]+f[i][j]))dif=true;
            step++;
            if(step>n+5){
                able=true;break;
            }
        }
        if(able)ok=md;
        else ng=md;
    }
    bool ad=false;
    ll md=ok*2+1;
    vi dp(n);
    vvi f(n,vi(n,-inf));
    rep(i,n)rep(j,n)if(inf/md>dis[i][j])chmax(f[i][j],2*val[i][j]-md*dis[i][j]);
    bool dif=true;int step=0;
    while(dif){
        dif=false;
        rep(i,n)rep(j,n)if(f[i][j]!=-inf)if(chmax(dp[j],dp[i]+f[i][j]))dif=true;
        step++;
        if(step>n+5){
            ad=true;break;
        }
    }
    if(ad)out(ok+1);
    else out(ok);
}

컴파일 시 표준 에러 (stderr) 메시지

merchant.cpp: In function 'int main()':
merchant.cpp:73:25: error: no match for 'operator!=' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<std::vector<long long int> > >::value_type {aka std::vector<long long int>}' and 'long long int')
             if(dis[t.se]!=t.fi)continue;
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 merchant.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:
merchant.cpp:10:12: note:   '__gnu_cxx::__alloc_traits<std::allocator<std::vector<long long int> > >::value_type {aka std::vector<long long int>}' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
 #define fi first
            ^
merchant.cpp:73:29: note: in expansion of macro 'fi'
             if(dis[t.se]!=t.fi)continue;
                             ^~
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 merchant.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:
merchant.cpp:10:12: note:   '__gnu_cxx::__alloc_traits<std::allocator<std::vector<long long int> > >::value_type {aka std::vector<long long int>}' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
 #define fi first
            ^
merchant.cpp:73:29: note: in expansion of macro 'fi'
             if(dis[t.se]!=t.fi)continue;
                             ^~
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 merchant.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:
merchant.cpp:10:12: note:   '__gnu_cxx::__alloc_traits<std::allocator<std::vector<long long int> > >::value_type {aka std::vector<long long int>}' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
 #define fi first
            ^
merchant.cpp:73:29: note: in expansion of macro 'fi'
             if(dis[t.se]!=t.fi)continue;
                             ^~
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 merchant.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:
merchant.cpp:10:12: note:   mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'long long int'
 #define fi first
            ^
merchant.cpp:73:29: note: in expansion of macro 'fi'
             if(dis[t.se]!=t.fi)continue;
                             ^~
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 merchant.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:
merchant.cpp:10:12: note:   '__gnu_cxx::__alloc_traits<std::allocator<std::vector<long long int> > >::value_type {aka std::vector<long long int>}' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
 #define fi first
            ^
merchant.cpp:73:29: note: in expansion of macro 'fi'
             if(dis[t.se]!=t.fi)continue;
                             ^~
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 merchant.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:
merchant.cpp:10:12: note:   mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'long long int'
 #define fi first
            ^
merchant.cpp:73:29: note: in expansion of macro 'fi'
             if(dis[t.se]!=t.fi)continue;
                             ^~
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 merchant.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:
merchant.cpp:10:12: note:   '__gnu_cxx::__alloc_traits<std::allocator<std::vector<long long int> > >::value_type {aka std::vector<long long int>}' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
 #define fi first
            ^
merchant.cpp:73:29: note: in expansion of macro 'fi'
             if(dis[t.se]!=t.fi)continue;
                             ^~
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 merchant.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:
merchant.cpp:10:12: note:   '__gnu_cxx::__alloc_traits<std::allocator<std::vector<long long int> > >::value_type {aka std::vector<long long int>}' is not derived from 'const std::__cxx11::match_results<_BiIter, _Alloc>'
 #define fi first
            ^
merchant.cpp:73:29: note: in expansion of macro 'fi'
             if(dis[t.se]!=t.fi)continue;
                             ^~
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 merchant.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:
merchant.cpp:10:12: note:   '__gnu_cxx::__alloc_traits<std::allocator<std::vector<long long int> > >::value_type {aka std::vector<long long int>}' is not derived from 'const std::fpos<_StateT>'
 #define fi first
            ^
merchant.cpp:73:29: note: in expansion of macro 'fi'
             if(dis[t.se]!=t.fi)continue;
                             ^~
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 merchant.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:
merchant.cpp:10:12: note:   '__gnu_cxx::__alloc_traits<std::allocator<std::vector<long long int> > >::value_type {aka std::vector<long long int>}' is not derived from 'const std::pair<_T1, _T2>'
 #define fi first
            ^
merchant.cpp:73:29: note: in expansion of macro 'fi'
             if(dis[t.se]!=t.fi)continue;
                             ^~
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 merchant.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:
merchant.cpp:10:12: note:   '__gnu_cxx::__alloc_traits<std::allocator<std::vector<long long int> > >::value_type {aka std::vector<long long int>}' is not derived from 'const std::reverse_iterator<_Iterator>'
 #define fi first
            ^
merchant.cpp:73:29: note: in expansion of macro 'fi'
             if(dis[t.se]!=t.fi)continue;
                             ^~
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 merchant.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:
merchant.cpp:10:12: note:   '__gnu_cxx::__alloc_traits<std::allocator<std::vector<long long int> > >::value_type {aka std::vector<long long int>}' is not derived from 'const std::reverse_iterator<_Iterator>'
 #define fi first
            ^
merchant.cpp:73:29: note: in expansion of macro 'fi'
             if(dis[t.se]!=t.fi)continue;
                             ^~
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 merchant.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:
merchant.cpp:10:12: note:   '__gnu_cxx::__alloc_traits<std::allocator<std::vector<long long int> > >::value_type {aka std::vector<long long int>}' is not derived from 'const std::move_iterator<_IteratorL>'
 #define fi first
            ^
merchant.cpp:73:29: note: in expansion of macro 'fi'
             if(dis[t.se]!=t.fi)continue;
                             ^~
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 merchant.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:
merchant.cpp:10:12: note:   '__gnu_cxx::__alloc_traits<std::allocator<std::vector<long long int> > >::value_type {aka std::vector<long long int>}' is not derived from 'const std::move_iterator<_IteratorL>'
 #define fi first
            ^
merchant.cpp:73:29: note: in expansion of macro 'fi'
             if(dis[t.se]!=t.fi)continue;
                             ^~
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 merchant.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:
merchant.cpp:10:12: note:   '__gnu_cxx::__alloc_traits<std::allocator<std::vector<long long int> > >::value_type {aka std::vector<long long int>}' is not derived from 'const std::allocator<_CharT>'
 #define fi first
            ^
merchant.cpp:73:29: note: in expansion of macro 'fi'
             if(dis[t.se]!=t.fi)continue;
                             ^~
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 merchant.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:
merchant.cpp:10:12: note:   '__gnu_cxx::__alloc_traits<std::allocator<std::vector<long long int> > >::value_type {aka std::vector<long long int>}' is not derived from 'const std::allocator<_CharT>'
 #define fi first
            ^
merchant.cpp:73:29: note: in expansion of macro 'fi'
             if(dis[t.se]!=t.fi)continue;
                             ^~
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 merchant.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:
merchant.cpp:10:12: note:   '__gnu_cxx::__alloc_traits<std::allocator<std::vector<long long int> > >::value_type {aka std::vector<long long int>}' is not derived from