F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_18289641_16972.cpp: In function 'void dfs(int, ll, ll)':
0_0_18289641_16972.cpp:34:8: error: no match for 'operator+' (operand types are 'll {aka long long int}' and 'Node')
  if (V + a[t] + sum[n - 1] - sum[t] <= ans)
        ^
0_0_18289641_16972.cpp:34:8: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
                 from 0_0_18289641_16972.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:334:5: note: template<class _Iterator> std::reverse_iterator<_Iterator> std::operator+(typename std::reverse_iterator<_Iterator>::difference_type, const std::reverse_iterator<_Iterator>&)
     operator+(typename reverse_iterator<_Iterator>::difference_type __n,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:334:5: note:   template argument deduction/substitution failed:
0_0_18289641_16972.cpp:34:13: note:   'Node' is not derived from 'const std::reverse_iterator<_Iterator>'
  if (V + a[t] + sum[n - 1] - sum[t] <= ans)
             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
                 from 0_0_18289641_16972.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1135:5: note: template<class _Iterator> std::move_iterator<_Iterator> std::operator+(typename std::move_iterator<_Iterator>::difference_type, const std::move_iterator<_Iterator>&)
     operator+(typename move_iterator<_Iterator>::difference_type __n,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1135:5: note:   template argument deduction/substitution failed:
0_0_18289641_16972.cpp:34:13: note:   'Node' is not derived from 'const std::move_iterator<_Iterator>'
  if (V + a[t] + sum[n - 1] - sum[t] <= ans)
             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_18289641_16972.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:358:5: note: template<class _Tp, class _Ref, class _Ptr> std::_Deque_iterator<_Tp, _Ref, _Ptr> std::operator+(std::ptrdiff_t, const std::_Deque_iterator<_Tp, _Ref, _Ptr>&)
     operator+(ptrdiff_t __n, const _Deque_iterator<_Tp, _Ref, _Ptr>& __x)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:358:5: note:   template argument deduction/substitution failed:
0_0_18289641_16972.cpp:34:13: note:   'Node' is not derived from 'const std::_Deque_iterator<_Tp, _Ref, _Ptr>'
  if (V + a[t] + sum[n - 1] - sum[t] <= ans)
             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:61,
                 from 0_0_18289641_16972.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:297:3: note: std::_Bit_iterator std::operator+(std::ptrdiff_t, const std::_Bit_iterator&)
   operator+(ptrdiff_t __n, const _Bit_iterator& __x)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:297:3: note:   no known conversion for argument 2 from 'Node' to 'const std::_Bit_iterator&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:387:3: note: std::_Bit_const_iterator std::operator+(std::ptrdiff_t, const std::_Bit_const_iterator&)
   operator+(ptrdiff_t __n, const _Bit_const_iterator& __x)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:387:3: note:   no known conversion for argument 2 from 'Node' to 'const std::_Bit_const_iterator&'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bitset:47,
                 from 0_0_18289641_16972.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2384:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&)
     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2384:5: note:   template argument deduction/substitution failed:
0_0_18289641_16972.cpp:34:13: note:   mismatched types 'const std::basic_string<_CharT, _Traits, _Alloc>' and 'll {aka long long int}'
  if (V + a[t] + sum[n - 1] - sum[t] <= ans)
             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:53:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bitset:47,
                 from 0_0_18289641_16972.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.tcc:692:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const _CharT*, const std::basic_string<_CharT, _Traits, _Alloc>&)
     operator+(const _CharT* __lhs,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.tcc:692:5: note:   template argument deduction/substitution failed:
0_0_18289641_16972.cpp:34:13: note:   mismatched types 'const _CharT*' and 'long long int'
  if (V + a[t] + sum[n - 1] - sum[t] <= ans)
             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:53:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bitset:47,
                 from 0_0_18289641_16972.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.tcc:708:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(_CharT, const std::basic_string<_CharT, _Traits, _Alloc>&)
     operator+(_CharT __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.tcc:708:5: note:   template argument deduction/substitution failed:
0_0_18289641_16972.cpp:34:13: note:   'Node' is not derived from 'const std::basic_string<_CharT, _Traits, _Alloc>'
  if (V + a[t] + sum[n - 1] - sum[t] <= ans)
             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bitset:47,
                 from 0_0_18289641_16972.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2421:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)
     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2421:5: note:   template argument deduction/substitution failed:
0_0_18289641_16972.cpp:34:13: note:   mismatched types 'const std::basic_string<_CharT, _Traits, _Alloc>' and 'll {aka long long int}'
  if (V + a[t] + sum[n - 1] - sum[t] <= ans)
             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bitset:47,
                 from 0_0_18289641_16972.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2437:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::basic_string<_CharT, _Traits, _Alloc>&, _CharT)
     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2437:5: note:   template argument deduction/substitution failed:
0_0_18289641_16972.cpp:34:13: note:   mismatched types 'const std::basic_string<_CharT, _Traits, _Alloc>' and 'll {aka long long int}'
  if (V + a[t] + sum[n - 1] - sum[t] <= ans)
             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bitset:47,
                 from 0_0_18289641_16972.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2449:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(std::basic_string<_CharT, _Traits, _Alloc>&&, const std::basic_string<_CharT, _Traits, _Alloc>&)
     operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2449:5: note:   template argument deduction/substitution failed:
0_0_18289641_16972.cpp:34:13: note:   mismatched types 'std::basic_string<_CharT, _Traits, _Alloc>' and 'll {aka long long int}'
  if (V + a[t] + sum[n - 1] - sum[t] <= ans)
             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bitset:47,
                 from 0_0_18289641_16972.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2455:5: note: template<class _CharT, class _Trait


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-26 10:02:22, Gzip enabled