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_24650910_20959.cpp: In function 'int main()':
0_0_24650910_20959.cpp:16:26: error: 'memset' was not declared in this scope
   memset(f,MAXN,sizeof(f));
                          ^
0_0_24650910_20959.cpp:22:11: error: incompatible types in assignment of 'int' to 'int [1009]'
    f[s][e]=w;
           ^
0_0_24650910_20959.cpp:23:11: error: incompatible types in assignment of 'int' to 'int [1009]'
    f[e][s]=w;
           ^
0_0_24650910_20959.cpp:24:4: error: 'p' was not declared in this scope
    p=min(p,e);
    ^
0_0_24650910_20959.cpp:26:18: error: 'p' was not declared in this scope
   for(int i=1;i<=p;i++) f[i][i]=0;
                  ^
0_0_24650910_20959.cpp:26:32: error: incompatible types in assignment of 'int' to 'int [1009]'
   for(int i=1;i<=p;i++) f[i][i]=0;
                                ^
0_0_24650910_20959.cpp:27:18: error: 'p' was not declared in this scope
   for(int k=1;k<=p,k++){
                  ^
0_0_24650910_20959.cpp:27:23: error: expected ';' before ')' token
   for(int k=1;k<=p,k++){
                       ^
0_0_24650910_20959.cpp:30:40: error: invalid operands of types 'int [1009]' and 'int [1009]' to binary 'operator+'
      f[i][j]=min(f[i][j],f[i][k]+f[k][j]);
                                        ^
0_0_24650910_20959.cpp:5:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
 #define MAXN  (1<<28)
                     ^
0_0_24650910_20959.cpp:37:16: note: in expansion of macro 'MAXN'
    if(f[1][x]!=MAXN)
                ^


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-06-19 06:13:38, Gzip enabled