0_0_20945573_15354.cpp:16:9: error: 'pair' does not name a type
typedef pair<int,int> pii;
^
0_0_20945573_15354.cpp:17:9: error: 'vector' does not name a type
typedef vector<int> vi;
^
0_0_20945573_15354.cpp:18:9: error: 'vector' does not name a type
typedef vector<int>::iterator vit;
^
0_0_20945573_15354.cpp:27:1: error: 'vector' does not name a type
vector<long long> b;
^
0_0_20945573_15354.cpp: In function 'int main()':
0_0_20945573_15354.cpp:32:16: error: 'scanf' was not declared in this scope
sf("%d", &T);
^
0_0_20945573_15354.cpp:39:30: error: 'printf' was not declared in this scope
pf("impossible\n");
^
0_0_20945573_15354.cpp:43:9: error: 'b' was not declared in this scope
b.clear();
^
0_0_20945573_15354.cpp:49:20: error: 'sort' was not declared in this scope
sort(all(b));
^
0_0_20945573_15354.cpp:50:30: error: 'unique' was not declared in this scope
b.erase(unique(all(b)), b.end());
^
0_0_20945573_15354.cpp:53:34: error: 'p' was not declared in this scope
if (b[i] != h[0]) dp[p][i] = inf;
^
0_0_20945573_15354.cpp:54:21: error: 'p' was not declared in this scope
else dp[p][i] = 0;
^
0_0_20945573_15354.cpp:57:13: error: 'q' was not declared in this scope
q = p ^ 1;
^
0_0_20945573_15354.cpp:57:17: error: 'p' was not declared in this scope
q = p ^ 1;
^
0_0_20945573_15354.cpp:64:69: error: 'min' was not declared in this scope
dp[q][j] = min(dp[q][j], dp[p][k] + ABS(b[j] - h[i]));
^
0_0_20945573_15354.cpp:71:34: error: 'p' was not declared in this scope
pf("%I64d\n", dp[p][i]);
^
0_0_20945573_15354.cpp:71:39: error: 'printf' was not declared in this scope
pf("%I64d\n", dp[p][i]);
^
|