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_39078580_19904.cpp:17:9: error: 'pair' does not name a type
   17 | typedef pair<int,int> pii;
      |         ^~~~
0_0_39078580_19904.cpp:18:9: error: 'vector' does not name a type
   18 | typedef vector<int> vi;
      |         ^~~~~~
0_0_39078580_19904.cpp:19:9: error: 'vector' does not name a type
   19 | typedef vector<int>::iterator vit;
      |         ^~~~~~
0_0_39078580_19904.cpp:28:1: error: 'vector' does not name a type
   28 | vector<long long> b;
      | ^~~~~~
0_0_39078580_19904.cpp: In function 'int main()':
0_0_39078580_19904.cpp:10:12: error: 'scanf' was not declared in this scope
   10 | #define sf scanf
      |            ^~~~~
0_0_39078580_19904.cpp:33:5: note: in expansion of macro 'sf'
   33 |     sf("%d", &T);
      |     ^~
0_0_39078580_19904.cpp:11:12: error: 'printf' was not declared in this scope
   11 | #define pf printf
      |            ^~~~~~
0_0_39078580_19904.cpp:40:13: note: in expansion of macro 'pf'
   40 |             pf("impossible\n");
      |             ^~
0_0_39078580_19904.cpp:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | 
0_0_39078580_19904.cpp:44:9: error: 'b' was not declared in this scope
   44 |         b.clear();
      |         ^
0_0_39078580_19904.cpp:50:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   50 |         sort(all(b));
      |         ^~~~
      |         short
0_0_39078580_19904.cpp:51:17: error: 'unique' was not declared in this scope
   51 |         b.erase(unique(all(b)), b.end());
      |                 ^~~~~~
0_0_39078580_19904.cpp:54:34: error: 'p' was not declared in this scope
   54 |             if (b[i] != h[0]) dp[p][i] = inf;
      |                                  ^
0_0_39078580_19904.cpp:55:21: error: 'p' was not declared in this scope
   55 |             else dp[p][i] = 0;
      |                     ^
0_0_39078580_19904.cpp:58:13: error: 'q' was not declared in this scope
   58 |             q = p ^ 1;
      |             ^
0_0_39078580_19904.cpp:58:17: error: 'p' was not declared in this scope
   58 |             q = p ^ 1;
      |                 ^
0_0_39078580_19904.cpp:65:28: error: 'min' was not declared in this scope; did you mean 'main'?
   65 |                 dp[q][j] = min(dp[q][j], dp[p][k] + ABS(b[j] - h[i]));
      |                            ^~~
      |                            main
0_0_39078580_19904.cpp:72:34: error: 'p' was not declared in this scope
   72 |                 pf("%I64d\n", dp[p][i]);
      |                                  ^
0_0_39078580_19904.cpp:11:12: error: 'printf' was not declared in this scope
   11 | #define pf printf
      |            ^~~~~~
0_0_39078580_19904.cpp:72:17: note: in expansion of macro 'pf'
   72 |                 pf("%I64d\n", dp[p][i]);
      |                 ^~
0_0_39078580_19904.cpp:11:12: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
   11 | #define pf printf
      |            ^~~~~~
0_0_39078580_19904.cpp:72:17: note: in expansion of macro 'pf'
   72 |                 pf("%I64d\n", dp[p][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-05-07 17:21:40, Gzip enabled