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_18803270_15002.cpp:3:11: error: '::main' must return 'int'
 void main()
           ^
0_0_18803270_15002.cpp: In function 'int main()':
0_0_18803270_15002.cpp:12:11: error: expected ';' before 'scanf'
 for(i=0;i scanf("%d",&a[i]);
           ^
0_0_18803270_15002.cpp:12:28: error: expected ')' before ';' token
 for(i=0;i scanf("%d",&a[i]);
                            ^
0_0_18803270_15002.cpp:13:11: error: expected ';' before 'scanf'
 for(i=0;i scanf("%d",&b[i]);
           ^
0_0_18803270_15002.cpp:13:28: error: expected ')' before ';' token
 for(i=0;i scanf("%d",&b[i]);
                            ^
0_0_18803270_15002.cpp:19:11: error: expected ';' before 'if'
 for(i=0;i if(a[i]>a[i+1])
           ^
0_0_18803270_15002.cpp:19:11: error: expected primary-expression before 'if'
0_0_18803270_15002.cpp:19:11: error: expected ')' before 'if'
0_0_18803270_15002.cpp:26:11: error: expected ';' before 'printf'
 for(i=0;i printf("%d ",a[i]);
           ^
0_0_18803270_15002.cpp:26:29: error: expected ')' before ';' token
 for(i=0;i printf("%d ",a[i]);
                             ^
0_0_18803270_15002.cpp:31:11: error: expected ';' before '{' token
 for(i=0;i {
           ^
0_0_18803270_15002.cpp:31:11: error: expected primary-expression before '{' token
0_0_18803270_15002.cpp:31:11: error: expected ')' before '{' token
0_0_18803270_15002.cpp:33:11: error: expected ';' before 'if'
 for(j=0;j if(a[i]!=b[j])
           ^
0_0_18803270_15002.cpp:33:11: error: expected primary-expression before 'if'
0_0_18803270_15002.cpp:33:11: error: expected ')' before 'if'
0_0_18803270_15002.cpp:47:11: error: expected ';' before 'if'
 for(i=0;i if(c[i]>c[i+1])
           ^
0_0_18803270_15002.cpp:47:11: error: expected primary-expression before 'if'
0_0_18803270_15002.cpp:47:11: error: expected ')' before 'if'
0_0_18803270_15002.cpp:54:11: error: expected ';' before 'printf'
 for(i=0;i printf("%d ",c[i]);
           ^
0_0_18803270_15002.cpp:54:29: error: expected ')' before ';' token
 for(i=0;i printf("%d ",c[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-11-20 07:48:41, Gzip enabled