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_21876998_11403.cpp:43:2: error: stray '#' in program
 }#include<iostream>
  ^
0_0_21876998_11403.cpp:43:3: error: 'include' does not name a type
 }#include<iostream>
   ^
0_0_21876998_11403.cpp:48:5: error: redefinition of 'int i'
 int i,j,k,l;
     ^
0_0_21876998_11403.cpp:6:5: note: 'int i' previously declared here
 int i,j,k,l;
     ^
0_0_21876998_11403.cpp:48:7: error: redefinition of 'int j'
 int i,j,k,l;
       ^
0_0_21876998_11403.cpp:6:7: note: 'int j' previously declared here
 int i,j,k,l;
       ^
0_0_21876998_11403.cpp:48:9: error: redefinition of 'int k'
 int i,j,k,l;
         ^
0_0_21876998_11403.cpp:6:9: note: 'int k' previously declared here
 int i,j,k,l;
         ^
0_0_21876998_11403.cpp:48:11: error: redefinition of 'int l'
 int i,j,k,l;
           ^
0_0_21876998_11403.cpp:6:11: note: 'int l' previously declared here
 int i,j,k,l;
           ^
0_0_21876998_11403.cpp:49:8: error: redefinition of 'struct n'
 struct n
        ^
0_0_21876998_11403.cpp:7:8: error: previous definition of 'struct n'
 struct n
        ^
0_0_21876998_11403.cpp:53:12: error: invalid type in declaration before ';' token
  }num[1000];
            ^
0_0_21876998_11403.cpp:53:12: error: conflicting declaration 'int num [1000]'
0_0_21876998_11403.cpp:11:3: note: previous declaration as 'n num [1000]'
  }num[1000];
   ^
0_0_21876998_11403.cpp: In function 'int gcd(int, int)':
0_0_21876998_11403.cpp:54:6: error: redefinition of 'int gcd(int, int)'
  int gcd(int a,int b)
      ^
0_0_21876998_11403.cpp:12:6: note: 'int gcd(int, int)' previously defined here
  int gcd(int a,int b)
      ^
0_0_21876998_11403.cpp: In function 'int extgcd(int, int, int&, int&)':
0_0_21876998_11403.cpp:59:5: error: redefinition of 'int extgcd(int, int, int&, int&)'
 int extgcd(int a,int b,int &x,int &y)
     ^
0_0_21876998_11403.cpp:17:5: note: 'int extgcd(int, int, int&, int&)' previously defined here
 int extgcd(int a,int b,int &x,int &y)
     ^
0_0_21876998_11403.cpp: In function 'int main()':
0_0_21876998_11403.cpp:69:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_21876998_11403.cpp:27: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-09-28 07:24:48, Gzip enabled