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_36897114_8631.cpp:22:3: error: stray '#' in program
 } #include <iostream>
   ^
0_0_36897114_8631.cpp:43:3: error: stray '#' in program
 } #include <iostream>
   ^
0_0_36897114_8631.cpp:22:4: error: 'include' does not name a type
 } #include <iostream>
    ^
0_0_36897114_8631.cpp:24:11: error: redefinition of 'const int MAXN'
 const int MAXN = 1e3+9;
           ^
0_0_36897114_8631.cpp:3:11: note: 'const int MAXN' previously defined here
 const int MAXN = 1e3+9;
           ^
0_0_36897114_8631.cpp:25:11: error: redefinition of 'const int mod'
 const int mod = 1e3;
           ^
0_0_36897114_8631.cpp:4:11: note: 'const int mod' previously defined here
 const int mod = 1e3;
           ^
0_0_36897114_8631.cpp:26:11: error: redefinition of 'int f [1009]'
 int f[MAXN];
           ^
0_0_36897114_8631.cpp:5:5: note: 'int f [1009]' previously declared here
 int f[MAXN];
     ^
0_0_36897114_8631.cpp:27:5: error: redefinition of 'int A'
 int A,B,n;
     ^
0_0_36897114_8631.cpp:6:5: note: 'int A' previously declared here
 int A,B,n;
     ^
0_0_36897114_8631.cpp:27:7: error: redefinition of 'int B'
 int A,B,n;
       ^
0_0_36897114_8631.cpp:6:7: note: 'int B' previously declared here
 int A,B,n;
       ^
0_0_36897114_8631.cpp:27:9: error: redefinition of 'int n'
 int A,B,n;
         ^
0_0_36897114_8631.cpp:6:9: note: 'int n' previously declared here
 int A,B,n;
         ^
0_0_36897114_8631.cpp: In function 'int main()':
0_0_36897114_8631.cpp:28:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_36897114_8631.cpp:7:5: note: 'int main()' previously defined here
 int main(){
     ^
0_0_36897114_8631.cpp: At global scope:
0_0_36897114_8631.cpp:43:4: error: 'include' does not name a type
 } #include <iostream>
    ^
0_0_36897114_8631.cpp:45:11: error: redefinition of 'const int MAXN'
 const int MAXN = 1e3+9;
           ^
0_0_36897114_8631.cpp:3:11: note: 'const int MAXN' previously defined here
 const int MAXN = 1e3+9;
           ^
0_0_36897114_8631.cpp:46:11: error: redefinition of 'const int mod'
 const int mod = 1e3;
           ^
0_0_36897114_8631.cpp:4:11: note: 'const int mod' previously defined here
 const int mod = 1e3;
           ^
0_0_36897114_8631.cpp:47:11: error: redefinition of 'int f [1009]'
 int f[MAXN];
           ^
0_0_36897114_8631.cpp:5:5: note: 'int f [1009]' previously declared here
 int f[MAXN];
     ^
0_0_36897114_8631.cpp:48:5: error: redefinition of 'int A'
 int A,B,n;
     ^
0_0_36897114_8631.cpp:6:5: note: 'int A' previously declared here
 int A,B,n;
     ^
0_0_36897114_8631.cpp:48:7: error: redefinition of 'int B'
 int A,B,n;
       ^
0_0_36897114_8631.cpp:6:7: note: 'int B' previously declared here
 int A,B,n;
       ^
0_0_36897114_8631.cpp:48:9: error: redefinition of 'int n'
 int A,B,n;
         ^
0_0_36897114_8631.cpp:6:9: note: 'int n' previously declared here
 int A,B,n;
         ^
0_0_36897114_8631.cpp: In function 'int main()':
0_0_36897114_8631.cpp:49:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_36897114_8631.cpp:7: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-16 18:03:27, Gzip enabled