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_27806069_28594.cpp:4:1: error: '_int64' does not name a type
 _int64 gcd(_int64 a,_int64 b)
 ^
0_0_27806069_28594.cpp: In function 'int main()':
0_0_27806069_28594.cpp:14:2: error: '_int64' was not declared in this scope
  _int64 number,n1,n2;
  ^
0_0_27806069_28594.cpp:15:9: error: expected ';' before 'integer'
  _int64 integer;//整数部分
         ^
0_0_27806069_28594.cpp:16:9: error: expected ';' before 'fenzi'
  _int64 fenzi;//分子
         ^
0_0_27806069_28594.cpp:17:9: error: expected ';' before 'fenmu'
  _int64 fenmu;//分母
         ^
0_0_27806069_28594.cpp:18:9: error: expected ';' before 'a'
  _int64 a[23];//a[n]表示输入为n时,从1到n这些数的最小公倍数
         ^
0_0_27806069_28594.cpp:20:2: error: 'a' was not declared in this scope
  a[1]=1;
  ^
0_0_27806069_28594.cpp:21:47: error: 'gcd' was not declared in this scope
  for(i=2;i<=22;i++) a[i]=i*a[i-1]/gcd(i,a[i-1]);//两个数的最小公倍数等于这两个数的乘机除以他们的最大公约数
                                               ^
0_0_27806069_28594.cpp:25:3: error: 'fenzi' was not declared in this scope
   fenzi=0;
   ^
0_0_27806069_28594.cpp:28:3: error: 'number' was not declared in this scope
   number = gcd(fenzi,a[n]); //分子分母的最大公约数
   ^
0_0_27806069_28594.cpp:28:26: error: 'gcd' was not declared in this scope
   number = gcd(fenzi,a[n]); //分子分母的最大公约数
                          ^
0_0_27806069_28594.cpp:30:3: error: 'fenmu' was not declared in this scope
   fenmu = a[n]/number; //约分后的分母
   ^
0_0_27806069_28594.cpp:31:3: error: 'integer' was not declared in this scope
   integer = fenzi/fenmu; //结果的整数部分
   ^
0_0_27806069_28594.cpp:37:3: error: 'n1' was not declared in this scope
   n1=integer; n2=fenmu;
   ^
0_0_27806069_28594.cpp:37:15: error: 'n2' was not declared in this scope
   n1=integer; n2=fenmu;
               ^


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 14:35:49, Gzip enabled