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_39550745_6704.cpp:2:1: error: 'vector' does not name a type
    2 | vector<int>fac[N];
      | ^~~~~~
0_0_39550745_6704.cpp: In function 'void update2(int, int)':
0_0_39550745_6704.cpp:17:17: error: 'max' was not declared in this scope
   17 |         tr[x] = max(d, tr[x]);
      |                 ^~~
0_0_39550745_6704.cpp: In function 'int query2(int)':
0_0_39550745_6704.cpp:27:15: error: 'max' was not declared in this scope
   27 |         ans = max(ans, tr[x]);
      |               ^~~
0_0_39550745_6704.cpp: In function 'void chenge(int)':
0_0_39550745_6704.cpp:42:25: error: 'fac' was not declared in this scope
   42 |     for (int j = 0; j < fac[i].size(); j++)
      |                         ^~~
0_0_39550745_6704.cpp:55:25: error: 'INF' was not declared in this scope
   55 |         if (pre[v][1] < INF)
      |                         ^~~
0_0_39550745_6704.cpp: In function 'void solve()':
0_0_39550745_6704.cpp:64:5: error: 'cin' was not declared in this scope
   64 |     cin >> n ;
      |     ^~~
0_0_39550745_6704.cpp:65:5: error: 'memset' was not declared in this scope
   65 |     memset(tr, 0, sizeof(tr));
      |     ^~~~~~
0_0_39550745_6704.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_39550745_6704.cpp:68:17: error: 'INF' was not declared in this scope
   68 |     memset(pre, INF, sizeof(pre));
      |                 ^~~
0_0_39550745_6704.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_39550745_6704.cpp:95:9: error: 'cout' was not declared in this scope
   95 |         cout << ans[i] << endl;
      |         ^~~~
0_0_39550745_6704.cpp:95:27: error: 'endl' was not declared in this scope
   95 |         cout << ans[i] << endl;
      |                           ^~~~
0_0_39550745_6704.cpp: In function 'int main()':
0_0_39550745_6704.cpp:101:5: error: 'ios' has not been declared
  101 |     ios::sync_with_stdio(false);
      |     ^~~
0_0_39550745_6704.cpp:102:5: error: 'cin' was not declared in this scope
  102 |     cin.tie(0);
      |     ^~~
0_0_39550745_6704.cpp:103:5: error: 'cout' was not declared in this scope
  103 |     cout.tie(0);
      |     ^~~~
0_0_39550745_6704.cpp:110:13: error: 'fac' was not declared in this scope
  110 |             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:24:31, Gzip enabled