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_39373661_1637.cpp: In function 'int main()':
0_0_39373661_1637.cpp:35:39: error: 'struct std::pair<int, int>' has no member named 'a'
   35 |                                 if(m1.a != m2.b) {
      |                                       ^
0_0_39373661_1637.cpp:35:47: error: 'struct std::pair<int, int>' has no member named 'b'
   35 |                                 if(m1.a != m2.b) {
      |                                               ^
0_0_39373661_1637.cpp:39:33: error: 'ans' was not declared in this scope; did you mean 'abs'?
   39 |                                 ans += m1.a * m2.a * m1.b;
      |                                 ^~~
      |                                 abs
0_0_39373661_1637.cpp:39:43: error: 'struct std::pair<int, int>' has no member named 'a'
   39 |                                 ans += m1.a * m2.a * m1.b;
      |                                           ^
0_0_39373661_1637.cpp:39:50: error: 'struct std::pair<int, int>' has no member named 'a'
   39 |                                 ans += m1.a * m2.a * m1.b;
      |                                                  ^
0_0_39373661_1637.cpp:39:57: error: 'struct std::pair<int, int>' has no member named 'b'
   39 |                                 ans += m1.a * m2.a * m1.b;
      |                                                         ^
0_0_39373661_1637.cpp:40:47: error: 'struct std::pair<int, int>' has no member named 'a'
   40 |                                 sp.push(mk(m2.a, m1.b));
      |                                               ^
0_0_39373661_1637.cpp:40:53: error: 'struct std::pair<int, int>' has no member named 'b'
   40 |                                 sp.push(mk(m2.a, m1.b));
      |                                                     ^
0_0_39373661_1637.cpp:44:30: error: 'ans' was not declared in this scope; did you mean 'abs'?
   44 |                 else cout << ans << endl;
      |                              ^~~
      |                              abs


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-29 15:03:35, Gzip enabled