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_36864378_12799.cpp:5:5: error: 'maxn' was not declared in this scope
 } q[maxn];
     ^
0_0_36864378_12799.cpp:11:6: error: 'vector' in namespace 'std' does not name a template type
 std::vector<pii> v[2], now;
      ^
0_0_36864378_12799.cpp: In function 'void solve()':
0_0_36864378_12799.cpp:15:9: error: 'read' was not declared in this scope
     n = read;
         ^
0_0_36864378_12799.cpp:20:9: error: 'q' was not declared in this scope
         q[i].x = read;
         ^
0_0_36864378_12799.cpp:23:10: error: 'q' was not declared in this scope
     sort(q + 1, q + 1 + k, cmp);
          ^
0_0_36864378_12799.cpp:23:31: error: 'sort' was not declared in this scope
     sort(q + 1, q + 1 + k, cmp);
                               ^
0_0_36864378_12799.cpp:27:5: error: 'll' was not declared in this scope
     ll ans = 0;
     ^
0_0_36864378_12799.cpp:28:5: error: 'v' was not declared in this scope
     v[flag].clear();
     ^
0_0_36864378_12799.cpp:34:9: error: 'now' was not declared in this scope
         now.clear();
         ^
0_0_36864378_12799.cpp:61:49: error: 'max' was not declared in this scope
             int l = max(v[flag][tmp].x, now[i].x);
                                                 ^
0_0_36864378_12799.cpp:62:50: error: 'min' was not declared in this scope
             int r1 = min(v[flag][tmp].y, now[i].y);
                                                  ^
0_0_36864378_12799.cpp:67:17: error: 'ans' was not declared in this scope
                 ans += (r - l + 1);
                 ^
0_0_36864378_12799.cpp:74:5: error: 'cout' was not declared in this scope
     cout << ans << endl;
     ^
0_0_36864378_12799.cpp:74:13: error: 'ans' was not declared in this scope
     cout << ans << endl;
             ^
0_0_36864378_12799.cpp:74:20: error: 'endl' was not declared in this scope
     cout << ans << endl;
                    ^


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-24 15:02:50, Gzip enabled