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_33792758_28189.cpp:24:2: error: stray '#' in program
 }#include<iostream>
  ^
0_0_33792758_28189.cpp:24:3: error: 'include' does not name a type
 }#include<iostream>
   ^
0_0_33792758_28189.cpp:26:5: error: redefinition of 'int n'
 int n,a[100010],f[100010],p[100010],last[100010];
     ^
0_0_33792758_28189.cpp:3:5: note: 'int n' previously declared here
 int n,a[100010],f[100010],p[100010],last[100010];
     ^
0_0_33792758_28189.cpp:26:15: error: redefinition of 'int a [100010]'
 int n,a[100010],f[100010],p[100010],last[100010];
               ^
0_0_33792758_28189.cpp:3:7: note: 'int a [100010]' previously declared here
 int n,a[100010],f[100010],p[100010],last[100010];
       ^
0_0_33792758_28189.cpp:26:25: error: redefinition of 'int f [100010]'
 int n,a[100010],f[100010],p[100010],last[100010];
                         ^
0_0_33792758_28189.cpp:3:17: note: 'int f [100010]' previously declared here
 int n,a[100010],f[100010],p[100010],last[100010];
                 ^
0_0_33792758_28189.cpp:26:35: error: redefinition of 'int p [100010]'
 int n,a[100010],f[100010],p[100010],last[100010];
                                   ^
0_0_33792758_28189.cpp:3:27: note: 'int p [100010]' previously declared here
 int n,a[100010],f[100010],p[100010],last[100010];
                           ^
0_0_33792758_28189.cpp:26:48: error: redefinition of 'int last [100010]'
 int n,a[100010],f[100010],p[100010],last[100010];
                                                ^
0_0_33792758_28189.cpp:3:37: note: 'int last [100010]' previously declared here
 int n,a[100010],f[100010],p[100010],last[100010];
                                     ^
0_0_33792758_28189.cpp: In function 'void read(int&)':
0_0_33792758_28189.cpp:27:6: error: redefinition of 'void read(int&)'
 void read(int &x) 
      ^
0_0_33792758_28189.cpp:4:6: note: 'void read(int&)' previously defined here
 void read(int &x) 
      ^
0_0_33792758_28189.cpp: In function 'int main()':
0_0_33792758_28189.cpp:34:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_33792758_28189.cpp:11:5: note: 'int main()' previously defined here
 int main()
     ^


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-22 22:13:52, Gzip enabled