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_17428375_1706.cpp: In function 'int Dfs(std::vector<int>&)':
0_0_17428375_1706.cpp:33:23: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
     int s = dp[r] = st++;
                       ^
0_0_17428375_1706.cpp:34:11: error: 'dfs' was not declared in this scope
     dfs(  )
           ^
0_0_17428375_1706.cpp: In function 'void init()':
0_0_17428375_1706.cpp:41:12: error: no match for 'operator=' (operand types are 'std::map<long long unsigned int, int>' and 'int')
     si=0;st=0;
            ^
0_0_17428375_1706.cpp:41:12: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from 0_0_17428375_1706.cpp:9:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:293:7: note: std::map<_Key, _Tp, _Compare, _Alloc>& std::map<_Key, _Tp, _Compare, _Alloc>::operator=(const std::map<_Key, _Tp, _Compare, _Alloc>&) [with _Key = long long unsigned int; _Tp = int; _Compare = std::less<long long unsigned int>; _Alloc = std::allocator<std::pair<const long long unsigned int, int> >]
       operator=(const map& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:293:7: note:   no known conversion for argument 1 from 'int' to 'const std::map<long long unsigned int, int>&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:309:7: note: std::map<_Key, _Tp, _Compare, _Alloc>& std::map<_Key, _Tp, _Compare, _Alloc>::operator=(std::map<_Key, _Tp, _Compare, _Alloc>&&) [with _Key = long long unsigned int; _Tp = int; _Compare = std::less<long long unsigned int>; _Alloc = std::allocator<std::pair<const long long unsigned int, int> >]
       operator=(map&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:309:7: note:   no known conversion for argument 1 from 'int' to 'std::map<long long unsigned int, int>&&'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:335:7: note: std::map<_Key, _Tp, _Compare, _Alloc>& std::map<_Key, _Tp, _Compare, _Alloc>::operator=(std::initializer_list<std::pair<const _Key, _Tp> >) [with _Key = long long unsigned int; _Tp = int; _Compare = std::less<long long unsigned int>; _Alloc = std::allocator<std::pair<const long long unsigned int, int> >]
       operator=(initializer_list<value_type> __l)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:335:7: note:   no known conversion for argument 1 from 'int' to 'std::initializer_list<std::pair<const long long unsigned int, int> >'


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-23 03:03:16, Gzip enabled