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_39555266_12118.cpp:2:1: error: 'vector' does not name a type
    2 | vector<int>fac[N];
      | ^~~~~~
0_0_39555266_12118.cpp: In function 'void update2(int, int)':
0_0_39555266_12118.cpp:17:17: error: 'max' was not declared in this scope
   17 |         tr[x] = max(d, tr[x]);
      |                 ^~~
0_0_39555266_12118.cpp: In function 'int query2(int)':
0_0_39555266_12118.cpp:27:15: error: 'max' was not declared in this scope
   27 |         ans = max(ans, tr[x]);
      |               ^~~
0_0_39555266_12118.cpp: In function 'void chenge(int)':
0_0_39555266_12118.cpp:42:25: error: 'fac' was not declared in this scope
   42 |     for (int j = 0; j < fac[i].size(); j++)
      |                         ^~~
0_0_39555266_12118.cpp:55:25: error: 'INF' was not declared in this scope
   55 |         if (pre[v][1] < INF)
      |                         ^~~
0_0_39555266_12118.cpp: In function 'void solve()':
0_0_39555266_12118.cpp:64:5: error: 'cin' was not declared in this scope
   64 |     cin >> n ;
      |     ^~~
0_0_39555266_12118.cpp:65:5: error: 'memset' was not declared in this scope
   65 |     memset(tr, 0, sizeof(tr));
      |     ^~~~~~
0_0_39555266_12118.cpp:1:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
  +++ |+#include <cstring>
    1 | const int N = 50005;
0_0_39555266_12118.cpp:68:17: error: 'INF' was not declared in this scope
   68 |     memset(pre, INF, sizeof(pre));
      |                 ^~~
0_0_39555266_12118.cpp:80:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   80 |     sort(qy + 1, qy + q + 1, cmp);
      |     ^~~~
      |     short
0_0_39555266_12118.cpp:89:22: error: 'min' was not declared in this scope
   89 |         for (int j = min(qy[i].r,pre_l); j >= qy[i].l; j--)
      |                      ^~~
0_0_39555266_12118.cpp:102:9: error: 'cout' was not declared in this scope
  102 |         cout << ans[i] << endl;
      |         ^~~~
0_0_39555266_12118.cpp:102:27: error: 'endl' was not declared in this scope
  102 |         cout << ans[i] << endl;
      |                           ^~~~
0_0_39555266_12118.cpp: In function 'int main()':
0_0_39555266_12118.cpp:108:5: error: 'ios' has not been declared
  108 |     ios::sync_with_stdio(false);
      |     ^~~
0_0_39555266_12118.cpp:109:5: error: 'cin' was not declared in this scope
  109 |     cin.tie(0);
      |     ^~~
0_0_39555266_12118.cpp:110:5: error: 'cout' was not declared in this scope
  110 |     cout.tie(0);
      |     ^~~~
0_0_39555266_12118.cpp:117:13: error: 'fac' was not declared in this scope
  117 |             fac[j].push_back(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-09-29 01:27:37, Gzip enabled