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_20613949_5155.cpp:10:5: error: 'i' does not name a type
     i) break;                cur=l;                swap(c[i+1],c[cur]);            }        }        for(i=0;i<n;i++){            printf("%d",a[i]);            if(i!=n-1) printf(" ");            else printf("\n");        }        for(i=0;i<n;i++){            printf("%d",c[i]);            if(i!=n-1) printf(" ");            else printf("\n");        }    }    return 0;}
     ^
0_0_20613949_5155.cpp:10:30: error: 'cur' does not name a type
     i) break;                cur=l;                swap(c[i+1],c[cur]);            }        }        for(i=0;i<n;i++){            printf("%d",a[i]);            if(i!=n-1) printf(" ");            else printf("\n");        }        for(i=0;i<n;i++){            printf("%d",c[i]);            if(i!=n-1) printf(" ");            else printf("\n");        }    }    return 0;}
                              ^
0_0_20613949_5155.cpp:10:56: error: expected constructor, destructor, or type conversion before '(' token
     i) break;                cur=l;                swap(c[i+1],c[cur]);            }        }        for(i=0;i<n;i++){            printf("%d",a[i]);            if(i!=n-1) printf(" ");            else printf("\n");        }        for(i=0;i<n;i++){            printf("%d",c[i]);            if(i!=n-1) printf(" ");            else printf("\n");        }    }    return 0;}
                                                        ^
0_0_20613949_5155.cpp:10:84: error: expected declaration before '}' token
     i) break;                cur=l;                swap(c[i+1],c[cur]);            }        }        for(i=0;i<n;i++){            printf("%d",a[i]);            if(i!=n-1) printf(" ");            else printf("\n");        }        for(i=0;i<n;i++){            printf("%d",c[i]);            if(i!=n-1) printf(" ");            else printf("\n");        }    }    return 0;}
                                                                                    ^


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-29 04:27:12, Gzip enabled