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_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);
                                ^


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-26 13:54:28, Gzip enabled