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_38933088_16967.cpp:1:1: error: expected declaration before '}' token
    1 | }
      | ^
0_0_38933088_16967.cpp:6:1: error: 'pair' does not name a type
    6 | pair<int, int> e[maxn];
      | ^~~~
0_0_38933088_16967.cpp: In function 'int main()':
0_0_38933088_16967.cpp:10:9: error: 'ios' has not been declared
   10 |         ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
      |         ^~~
0_0_38933088_16967.cpp:10:38: error: 'cin' was not declared in this scope
   10 |         ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
      |                                      ^~~
0_0_38933088_16967.cpp:10:50: error: 'cout' was not declared in this scope
   10 |         ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
      |                                                  ^~~~
0_0_38933088_16967.cpp:12:22: error: 'n' was not declared in this scope
   12 |         while(cin >> n >> m >> a >> b >> c){
      |                      ^
0_0_38933088_16967.cpp:12:27: error: 'm' was not declared in this scope
   12 |         while(cin >> n >> m >> a >> b >> c){
      |                           ^
0_0_38933088_16967.cpp:12:32: error: 'a' was not declared in this scope
   12 |         while(cin >> n >> m >> a >> b >> c){
      |                                ^
0_0_38933088_16967.cpp:12:37: error: 'b' was not declared in this scope
   12 |         while(cin >> n >> m >> a >> b >> c){
      |                                     ^
0_0_38933088_16967.cpp:12:42: error: 'c' was not declared in this scope
   12 |         while(cin >> n >> m >> a >> b >> c){
      |                                          ^
0_0_38933088_16967.cpp:14:32: error: 'e' was not declared in this scope
   14 |                         cin >> e[i].first;
      |                                ^
0_0_38933088_16967.cpp:17:22: error: 'e' was not declared in this scope
   17 |                 sort(e + 1, e + m + 1);
      |                      ^
0_0_38933088_16967.cpp:17:17: error: 'sort' was not declared in this scope; did you mean 'short'?
   17 |                 sort(e + 1, e + m + 1);
      |                 ^~~~
      |                 short
0_0_38933088_16967.cpp:18:17: error: 'x' was not declared in this scope
   18 |                 x = a, y = b, z = c;
      |                 ^
0_0_38933088_16967.cpp:18:24: error: 'y' was not declared in this scope
   18 |                 x = a, y = b, z = c;
      |                        ^
0_0_38933088_16967.cpp:18:31: error: 'z' was not declared in this scope
   18 |                 x = a, y = b, z = c;
      |                               ^
0_0_38933088_16967.cpp:19:56: error: 'rng61' was not declared in this scope
   19 |                 for(int i = 1; i <= n; i ++ )   d[i] = rng61();
      |                                                        ^~~~~
0_0_38933088_16967.cpp:22:25: error: 'nth_element' was not declared in this scope
   22 |                         nth_element(d + 1, d + 1 + e[i].first, d + 1 + e[i + 1].first);
      |                         ^~~~~~~~~~~
0_0_38933088_16967.cpp:27:25: error: 'endl' was not declared in this scope
   27 |                 cout << 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-22 05:06:37, Gzip enabled