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_17576443_13790.cpp:4:1: error: '_int64' does not name a type
 _int64 gcd(_int64 a,_int64 b)
 ^
0_0_17576443_13790.cpp: In function 'int main()':
0_0_17576443_13790.cpp:14:5: error: '_int64' was not declared in this scope
     _int64 number,n1,n2;
     ^
0_0_17576443_13790.cpp:15:12: error: expected ';' before 'integer'
     _int64 integer;//整数部分
            ^
0_0_17576443_13790.cpp:16:12: error: expected ';' before 'fenzi'
     _int64 fenzi;//分子
            ^
0_0_17576443_13790.cpp:17:12: error: expected ';' before 'fenmu'
     _int64 fenmu;//分母
            ^
0_0_17576443_13790.cpp:18:12: error: expected ';' before 'a'
     _int64 a[23];//a[n]表示输入为n时,从1到n这些数的最小公倍数
            ^
0_0_17576443_13790.cpp:20:5: error: 'a' was not declared in this scope
     a[1]=1;
     ^
0_0_17576443_13790.cpp:21:50: 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_17576443_13790.cpp:25:9: error: 'fenzi' was not declared in this scope
         fenzi=0;
         ^
0_0_17576443_13790.cpp:28:9: error: 'number' was not declared in this scope
         number = gcd(fenzi,a[n]); //分子分母的最大公约数
         ^
0_0_17576443_13790.cpp:28:32: error: 'gcd' was not declared in this scope
         number = gcd(fenzi,a[n]); //分子分母的最大公约数
                                ^
0_0_17576443_13790.cpp:30:9: error: 'fenmu' was not declared in this scope
         fenmu = a[n]/number; //约分后的分母
         ^
0_0_17576443_13790.cpp:31:9: error: 'integer' was not declared in this scope
         integer = fenzi/fenmu; //结果的整数部分
         ^
0_0_17576443_13790.cpp:37:9: error: 'n1' was not declared in this scope
         n1=integer; n2=fenmu;
         ^
0_0_17576443_13790.cpp:37:21: 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-07-03 19:36:08, Gzip enabled