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_36380922_1899.cpp: In function 'int main()':
0_0_36380922_1899.cpp:98:4: error: expected ';' before 'addedge'
    addedge(0,i,w);
    ^
0_0_36380922_1899.cpp:103:4: error: expected ';' before 'addedge'
    addedge(2*n+m+i,2*n+m+q+1,w);
    ^
0_0_36380922_1899.cpp:108:4: error: expected ';' before 'addedge'
    addedge(i+m,i+m+n,1);
    ^
0_0_36380922_1899.cpp:2:20: error: expected ';' before 'for'
 #define rep(i,a,b) for(int i=a;i<=b;i++)
                    ^
0_0_36380922_1899.cpp:120:4: note: in expansion of macro 'rep'
    rep(j,1,q)
    ^
0_0_36380922_1899.cpp:120:8: error: 'j' was not declared in this scope
    rep(j,1,q)
        ^
0_0_36380922_1899.cpp:2:32: note: in definition of macro 'rep'
 #define rep(i,a,b) for(int i=a;i<=b;i++)
                                ^


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-12-02 12:06:55, Gzip enabled