0_0_33773270_1282.cpp:1:1: error: 'include' does not name a type
include<bits/stdc++.h>
^
0_0_33773270_1282.cpp: In function 'int main()':
0_0_33773270_1282.cpp:2:31: error: 'scanf' was not declared in this scope
#define read(x) scanf("%d", &x)
^
0_0_33773270_1282.cpp:15:12: note: in expansion of macro 'read'
int T; read(T);
^
0_0_33773270_1282.cpp:29:47: error: 'min' was not declared in this scope
G[u][v] = G[v][u] = min(G[u][v], w);
^
0_0_33773270_1282.cpp:40:69: error: 'min' was not declared in this scope
if(!vis[v]) dist[v] = min(dist[v], dist[u] + G[u][v]);
^
0_0_33773270_1282.cpp:57:56: error: 'min' was not declared in this scope
dp[j] = min(dp[j], dp[j-p[i]] + dist[i]);
^
0_0_33773270_1282.cpp:61:65: error: 'min' was not declared in this scope
for(int i = (W-1)/2+2; i <= W; i++) ans = min(ans, dp[i]);
^
0_0_33773270_1282.cpp:64:41: error: 'puts' was not declared in this scope
if(ans == INF) puts("impossible");
^
0_0_33773270_1282.cpp:65:32: error: 'printf' was not declared in this scope
else printf("%d\n", ans);
^
|