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;}
^
|