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_39494708_14606.cpp: In function 'void Solve()':
0_0_39494708_14606.cpp:46:43: error: 'const __gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'const struct std::pair<int, int>'} has no member named 'st'
   46 |             ii _vPos = {uPos / 3 + mov[i].st, uPos % 3 + mov[i].se};
      |                                           ^~
0_0_39494708_14606.cpp:46:67: error: could not convert '{<expression error>, ((uPos % 3) + ((int)mov.std::vector<std::pair<int, int> >::operator[](((std::vector<std::pair<int, int> >::size_type)i)).std::pair<int, int>::second))}' from '<brace-enclosed initializer list>' to 'ii' {aka 'std::pair<int, int>'}
   46 |             ii _vPos = {uPos / 3 + mov[i].st, uPos % 3 + mov[i].se};
      |                                                                   ^
      |                                                                   |
      |                                                                   <brace-enclosed initializer list>
0_0_39494708_14606.cpp:47:27: error: 'ii' {aka 'struct std::pair<int, int>'} has no member named 'st'
   47 |             if (0 > _vPos.st || _vPos.st >= 3 || 0 > _vPos.se || _vPos.se >= 3) continue;
      |                           ^~
0_0_39494708_14606.cpp:47:39: error: 'ii' {aka 'struct std::pair<int, int>'} has no member named 'st'
   47 |             if (0 > _vPos.st || _vPos.st >= 3 || 0 > _vPos.se || _vPos.se >= 3) continue;
      |                                       ^~
0_0_39494708_14606.cpp:48:30: error: 'ii' {aka 'struct std::pair<int, int>'} has no member named 'st'
   48 |             int vPos = _vPos.st * 3 + _vPos.se;
      |                              ^~


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-22 12:32:31, Gzip enabled