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_28983613_552.cpp:38:2: error: stray '#' in program
 }#include<bits/stdc++.h>
  ^
0_0_28983613_552.cpp:38:3: error: 'include' does not name a type
 }#include<bits/stdc++.h>
   ^
0_0_28983613_552.cpp:40:11: error: redefinition of 'const int N'
 const int N=210;
           ^
0_0_28983613_552.cpp:3:11: note: 'const int N' previously defined here
 const int N=210;
           ^
0_0_28983613_552.cpp:41:5: error: redefinition of 'int n'
 int n,a[N];
     ^
0_0_28983613_552.cpp:4:5: note: 'int n' previously declared here
 int n,a[N];
     ^
0_0_28983613_552.cpp:41:10: error: redefinition of 'int a [210]'
 int n,a[N];
          ^
0_0_28983613_552.cpp:4:7: note: 'int a [210]' previously declared here
 int n,a[N];
       ^
0_0_28983613_552.cpp:42:11: error: redefinition of 'double p [210]'
 double p[N],ans;
           ^
0_0_28983613_552.cpp:5:8: note: 'double p [210]' previously declared here
 double p[N],ans;
        ^
0_0_28983613_552.cpp:42:13: error: redefinition of 'double ans'
 double p[N],ans;
             ^
0_0_28983613_552.cpp:5:13: note: 'double ans' previously declared here
 double p[N],ans;
             ^
0_0_28983613_552.cpp:43:9: error: redefinition of 'char s [210]'
 char s[N];
         ^
0_0_28983613_552.cpp:6:6: note: 'char s [210]' previously declared here
 char s[N];
      ^
0_0_28983613_552.cpp: In function 'void calc(int, int)':
0_0_28983613_552.cpp:44:6: error: redefinition of 'void calc(int, int)'
 void calc(int o,int w){
      ^
0_0_28983613_552.cpp:7:6: note: 'void calc(int, int)' previously defined here
 void calc(int o,int w){
      ^
0_0_28983613_552.cpp: In function 'int main()':
0_0_28983613_552.cpp:65:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_28983613_552.cpp:28: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-26 00:26:10, Gzip enabled