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_20658913_21561.cpp: In function 'status dfs(int)':
0_0_20658913_21561.cpp:45:15: error: expected primary-expression before '=' token
 if(dp[u].win (= -1)
               ^
0_0_20658913_21561.cpp:45:19: error: expression cannot be used as a function
 if(dp[u].win (= -1)
                   ^
0_0_20658913_21561.cpp:46:5: error: expected ')' before 'return'
     return dp[u];
     ^
0_0_20658913_21561.cpp: In function 'void BuildGraph()':
0_0_20658913_21561.cpp:87:20: error: request for member 'push_back' in 'GetID.std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[]<std::basic_string<char>, int, std::hash<std::basic_string<char> >, std::equal_to<std::basic_string<char> >, std::allocator<std::pair<const std::basic_string<char>, int> > >((*(const key_type*)(& st)))', which is of non-class type 'std::unordered_map<std::basic_string<char>, int>::mapped_type {aka int}'
      vec[GetID[st].push_back(i.second);
                    ^
0_0_20658913_21561.cpp:87:39: error: expected ']' before ';' token
      vec[GetID[st].push_back(i.second);
                                       ^


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-27 01:08:26, Gzip enabled