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_29894968_13577.cpp:7:6: error: 'vector' in namespace 'std' does not name a template type
 std::vector<ll> v;
      ^
0_0_29894968_13577.cpp:44:1: error: 'll' does not name a type
 ll query(int p, int q, int l, int r, int k)
 ^
0_0_29894968_13577.cpp: In function 'int main()':
0_0_29894968_13577.cpp:60:31: error: 'scanf' was not declared in this scope
  while (~scanf("%d %d", &n, &q)) {
                               ^
0_0_29894968_13577.cpp:64:13: error: 'read' was not declared in this scope
    read(a[i]);
             ^
0_0_29894968_13577.cpp:67:26: error: 'sort' was not declared in this scope
   sort(b + 1, b + tot + 1);
                          ^
0_0_29894968_13577.cpp:68:34: error: 'unique' was not declared in this scope
   tot = unique(b + 1, b + tot + 1) - (b + 1);
                                  ^
0_0_29894968_13577.cpp:72:50: error: 'lower_bound' was not declared in this scope
    int pos = lower_bound(b + 1, b + tot + 1, a[i]) - b;
                                                  ^
0_0_29894968_13577.cpp:77:10: error: 'read' was not declared in this scope
    read(l);
          ^
0_0_29894968_13577.cpp:81:18: error: 'printf' was not declared in this scope
     printf("-1\n");
                  ^
0_0_29894968_13577.cpp:86:5: error: 'v' was not declared in this scope
     v.clear();
     ^
0_0_29894968_13577.cpp:89:58: error: 'query' was not declared in this scope
      v.push_back(b[query(root[r], root[l - 1], 1, tot , i)]);
                                                          ^
0_0_29894968_13577.cpp:92:5: error: 'll' was not declared in this scope
     ll ans = 0;
     ^
0_0_29894968_13577.cpp:96:21: error: expected ')' before 'v'
      if (v[i] < (ll)v[i + 1] + v[i + 2])
                     ^
0_0_29894968_13577.cpp:98:7: error: 'ans' was not declared in this scope
       ans = (ll)v[i] + v[i + 1] + v[i + 2];
       ^
0_0_29894968_13577.cpp:103:16: error: 'ans' was not declared in this scope
     if (!flag) ans = -1;
                ^
0_0_29894968_13577.cpp:104:22: error: 'ans' was not declared in this scope
     printf("%lld\n", ans);
                      ^
0_0_29894968_13577.cpp:104:25: error: 'printf' was not declared in this scope
     printf("%lld\n", ans);
                         ^
0_0_29894968_13577.cpp:108:5: error: 'v' was not declared in this scope
     v.clear();
     ^
0_0_29894968_13577.cpp:111:57: error: 'query' was not declared in this scope
      v.push_back(b[query(root[r], root[l - 1], 1, tot, i)]);
                                                         ^
0_0_29894968_13577.cpp:114:5: error: 'll' was not declared in this scope
     ll ans = 0;
     ^
0_0_29894968_13577.cpp:118:21: error: expected ')' before 'v'
      if (v[i] < (ll)v[i + 1] + v[i + 2])
                     ^
0_0_29894968_13577.cpp:120:7: error: 'ans' was not declared in this scope
       ans = (ll)v[i] + v[i + 1] + v[i + 2];
       ^
0_0_29894968_13577.cpp:125:16: error: 'ans' was not declared in this scope
     if (!flag) ans = -1;
                ^
0_0_29894968_13577.cpp:126:22: error: 'ans' was not declared in this scope
     printf("%lld\n", ans);
                      ^
0_0_29894968_13577.cpp:126:25: error: 'printf' was not declared in this scope
     printf("%lld\n", ans);
                         ^


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-10-06 16:43:27, Gzip enabled