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_16875265_9219.cpp:12:1: error: 'queue' does not name a type
 queue <int> Q;
 ^
0_0_16875265_9219.cpp: In function 'void init()':
0_0_16875265_9219.cpp:19:37: error: 'inf' was not declared in this scope
             map[i][j] = map[j][i] = inf;
                                     ^
0_0_16875265_9219.cpp: In function 'void read()':
0_0_16875265_9219.cpp:28:34: error: 'scanf' was not declared in this scope
         scanf("%d %d %d",&u,&v,&w);
                                  ^
0_0_16875265_9219.cpp: In function 'void floyd()':
0_0_16875265_9219.cpp:39:39: error: 'inf' was not declared in this scope
             if(i == k || map[i][k] == inf) continue;
                                       ^
0_0_16875265_9219.cpp:41:53: error: 'inf' was not declared in this scope
                 if(j == i || j == k || map[k][j] == inf) continue;
                                                     ^
0_0_16875265_9219.cpp: In function 'void make(int)':
0_0_16875265_9219.cpp:68:32: error: 'memset' was not declared in this scope
     memset(head,-1,sizeof(head));
                                ^
0_0_16875265_9219.cpp:75:24: error: 'inf' was not declared in this scope
         if(map[0][i] < inf){
                        ^
0_0_16875265_9219.cpp:79:26: error: 'inf' was not declared in this scope
         addedge(i,i+n,1,-inf);
                          ^
0_0_16875265_9219.cpp: In function 'bool spfa(int)':
0_0_16875265_9219.cpp:90:33: error: 'memset' was not declared in this scope
     memset(vis,false,sizeof(vis));
                                 ^
0_0_16875265_9219.cpp:92:12: error: 'Q' was not declared in this scope
     while(!Q.empty()){
            ^
0_0_16875265_9219.cpp:96:34: error: 'inf' was not declared in this scope
         dis[i] = (i == st) ? 0 : inf;
                                  ^
0_0_16875265_9219.cpp:98:5: error: 'Q' was not declared in this scope
     Q.push(st);
     ^
0_0_16875265_9219.cpp:115:21: error: 'inf' was not declared in this scope
     return dis[t] < inf;
                     ^
0_0_16875265_9219.cpp: In function 'void solve()':
0_0_16875265_9219.cpp:119:15: error: 'inf' was not declared in this scope
     int res = inf;
               ^
0_0_16875265_9219.cpp:140:22: error: 'printf' was not declared in this scope
     printf("%d\n",res);
                      ^
0_0_16875265_9219.cpp: In function 'int main()':
0_0_16875265_9219.cpp:145:36: error: 'scanf' was not declared in this scope
     while(scanf("%d %d %d",&n,&m,&k) && n+m+k){
                                    ^


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-23 04:50:15, Gzip enabled