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_32526386_14669.cpp: In function 'int bfs()':
0_0_32526386_14669.cpp:26:14: error: 'c' was not declared in this scope
     if(hh.s>=c) pp.a=a,pp.s=hh.s-c;    
              ^
0_0_32526386_14669.cpp:38:7: error: 'hh' was not declared in this scope
    if(hh.s&&hh.b!=b)
       ^
0_0_32526386_14669.cpp:41:17: error: 'pp' was not declared in this scope
     if(hh.s>=c) pp.b=b,pp.s=hh.s-c;
                 ^
0_0_32526386_14669.cpp:42:12: error: 'pp' was not declared in this scope
     else   pp.b=hh.b+hh.b,  pp.s=0;
            ^
0_0_32526386_14669.cpp:43:5: error: 'pp' was not declared in this scope
     pp.a=hh.a;
     ^
0_0_32526386_14669.cpp:51:7: error: 'hh' was not declared in this scope
    if(hh.a&&hh.s!=s)
       ^
0_0_32526386_14669.cpp:54:17: error: 'pp' was not declared in this scope
     if(hh.a>=c) pp.s=s,pp.a=hh.a-c;
                 ^
0_0_32526386_14669.cpp:55:12: error: 'pp' was not declared in this scope
     else   pp.s=hh.s+hh.a,  pp.a=0;
            ^
0_0_32526386_14669.cpp:56:5: error: 'pp' was not declared in this scope
     pp.b=hh.b;
     ^
0_0_32526386_14669.cpp:64:7: error: 'hh' was not declared in this scope
    if(hh.a&&hh.b!=b)  
       ^
0_0_32526386_14669.cpp:67:17: error: 'pp' was not declared in this scope
     if(hh.a>=c) pp.b=b,pp.a=hh.a-c;
                 ^
0_0_32526386_14669.cpp:68:12: error: 'pp' was not declared in this scope
     else   pp.b=hh.b+hh.a,  pp.a=0;
            ^
0_0_32526386_14669.cpp:69:5: error: 'pp' was not declared in this scope
     pp.s=hh.s;
     ^
0_0_32526386_14669.cpp:77:7: error: 'hh' was not declared in this scope
    if(hh.b&&hh.a!=a)
       ^
0_0_32526386_14669.cpp:80:17: error: 'pp' was not declared in this scope
     if(hh.b>=c) pp.a=a,pp.b=hh.b-c;
                 ^
0_0_32526386_14669.cpp:81:12: error: 'pp' was not declared in this scope
     else   pp.a=hh.a+hh.b,  pp.b=0;
            ^
0_0_32526386_14669.cpp:82:5: error: 'pp' was not declared in this scope
     pp.s=hh.s;
     ^
0_0_32526386_14669.cpp:90:7: error: 'hh' was not declared in this scope
    if(hh.b&&hh.s!=s)
       ^
0_0_32526386_14669.cpp:93:17: error: 'pp' was not declared in this scope
     if(hh.b>=c) pp.s=s,pp.b=hh.b-c;
                 ^
0_0_32526386_14669.cpp:94:12: error: 'pp' was not declared in this scope
     else   pp.s=hh.s+hh.b,  pp.b=0;
            ^
0_0_32526386_14669.cpp:95:5: error: 'pp' was not declared in this scope
     pp.a=hh.a;
     ^
0_0_32526386_14669.cpp: At global scope:
0_0_32526386_14669.cpp:105:2: error: expected unqualified-id before 'return'
  return 0;
  ^
0_0_32526386_14669.cpp:106:1: error: expected declaration before '}' token
 }
 ^


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-09-29 20:25:25, Gzip enabled