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_14038640_27582.cpp: In function 'int main()':
0_0_14038640_27582.cpp:58:37: error: could not convert 'M.std::map<_Key, _Tp, _Compare, _Alloc>::find<std::pair<int, int>, int, std::less<std::pair<int, int> >, std::allocator<std::pair<const std::pair<int, int>, int> > >((*(const key_type*)(& std::pair<int, int>((* & s), (* & t)))))' from 'std::map<std::pair<int, int>, int>::iterator {aka std::_Rb_tree_iterator<std::pair<const std::pair<int, int>, int> >}' to 'bool'
     if (M.find(pair<int, int>(s, t)))
                                     ^
0_0_14038640_27582.cpp:78:7: error: 'pait' was not declared in this scope
     M[pait<int, int>(s, t)] = ans;
       ^
0_0_14038640_27582.cpp:78:12: error: expected primary-expression before 'int'
     M[pait<int, int>(s, t)] = ans;
            ^
0_0_14038640_27582.cpp:78:12: error: expected ']' before 'int'


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-27 21:49:00, Gzip enabled