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_17505300_18470.cpp:7:6: error: 'vector' in namespace 'std' does not name a template type
 std::vector <int> buffer[N];
      ^
0_0_17505300_18470.cpp:8:6: error: 'vector' in namespace 'std' does not name a template type
 std::vector <int> factors[N];
      ^
0_0_17505300_18470.cpp:9:6: error: 'pair' in namespace 'std' does not name a template type
 std::pair <std::pair <int, int>, int> p[N];
      ^
0_0_17505300_18470.cpp: In function 'void prepare()':
0_0_17505300_18470.cpp:12:43: error: 'factors' was not declared in this scope
     for (int i = 2; i < N; i ++) if ((int)factors[i].size() == 0) {
                                           ^
0_0_17505300_18470.cpp: In function 'void work()':
0_0_17505300_18470.cpp:68:9: error: 'buffer' was not declared in this scope
         buffer[i].clear();    
         ^
0_0_17505300_18470.cpp:71:9: error: 'buffer' was not declared in this scope
         buffer[left[i]].push_back(i);
         ^
0_0_17505300_18470.cpp:79:34: error: 'buffer' was not declared in this scope
         for (int j = 0; j < (int)buffer[i].size(); j ++) {
                                  ^
0_0_17505300_18470.cpp:84:27: error: 'p' was not declared in this scope
         while (now < m && p[now].first.first == i) {
                           ^
0_0_17505300_18470.cpp: In function 'int main()':
0_0_17505300_18470.cpp:97:32: error: 'scanf' was not declared in this scope
     while (scanf("%d%d", &n, &m) == 2 && n + m) {
                                ^
0_0_17505300_18470.cpp:101:21: error: 'max_element' is not a member of 'std'
         int maxv = *std::max_element(a + 1, a + n + 1);
                     ^
0_0_17505300_18470.cpp:102:9: error: 'fill' is not a member of 'std'
         std::fill(pos, pos + maxv + 1, 0);
         ^
0_0_17505300_18470.cpp:105:38: error: 'factors' was not declared in this scope
             for (int j = 0; j < (int)factors[a[i]].size(); j ++) {
                                      ^
0_0_17505300_18470.cpp:107:27: error: 'max' is not a member of 'std'
                 left[i] = std::max(left[i], pos[x] + 1);
                           ^
0_0_17505300_18470.cpp:111:9: error: 'fill' is not a member of 'std'
         std::fill(pos, pos + maxv + 1, n + 1);
         ^
0_0_17505300_18470.cpp:114:38: error: 'factors' was not declared in this scope
             for (int j = 0; j < (int)factors[a[i]].size(); j ++) {
                                      ^
0_0_17505300_18470.cpp:116:28: error: 'min' is not a member of 'std'
                 right[i] = std::min(right[i], pos[x] - 1);
                            ^
0_0_17505300_18470.cpp:123:13: error: 'p' was not declared in this scope
             p[i].first = {l, r};
             ^
0_0_17505300_18470.cpp:126:9: error: 'sort' is not a member of 'std'
         std::sort(p, p + m);
         ^
0_0_17505300_18470.cpp:126:19: error: 'p' was not declared in this scope
         std::sort(p, p + m);
                   ^
0_0_17505300_18470.cpp:129:37: error: 'printf' was not declared in this scope
             printf("%d\n", answer[i]);
                                     ^


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-23 00:05:06, Gzip enabled