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_27882525_17146.cpp:2:1: error: '_int64' does not name a type
 _int64 gcd(_int64 a, _int64 b)
 ^
0_0_27882525_17146.cpp: In function 'int main()':
0_0_27882525_17146.cpp:11:2: error: '_int64' was not declared in this scope
  _int64 number, n1, n2;
  ^
0_0_27882525_17146.cpp:12:9: error: expected ';' before 'integer'
  _int64 integer;//整数部分
         ^
0_0_27882525_17146.cpp:13:9: error: expected ';' before 'fenzi'
  _int64 fenzi;//分子
         ^
0_0_27882525_17146.cpp:14:9: error: expected ';' before 'fenmu'
  _int64 fenmu;//分母
         ^
0_0_27882525_17146.cpp:15:9: error: expected ';' before 'a'
  _int64 a[23];//a[n]表示输入为n时,从1到n这些数的最小公倍数
         ^
0_0_27882525_17146.cpp:16:2: error: 'a' was not declared in this scope
  a[1] = 1;
  ^
0_0_27882525_17146.cpp:19:35: error: 'gcd' was not declared in this scope
   a[i] = i * a[i - 1]/gcd(i,a[i-1]);//两个数的最小公倍数等于两数乘积除以两数公约数,最小公倍数=两数乘积/最小公约数
                                   ^
0_0_27882525_17146.cpp:24:3: error: 'fenzi' was not declared in this scope
   fenzi = 0;
   ^
0_0_27882525_17146.cpp:29:3: error: 'number' was not declared in this scope
   number = gcd(fenzi, a[n]);//求fenzi和a[n]的最大公约数,<------约分过程
   ^
0_0_27882525_17146.cpp:29:27: error: 'gcd' was not declared in this scope
   number = gcd(fenzi, a[n]);//求fenzi和a[n]的最大公约数,<------约分过程
                           ^
0_0_27882525_17146.cpp:31:3: error: 'fenmu' was not declared in this scope
   fenmu = a[n] / number;//求fenmu
   ^
0_0_27882525_17146.cpp:32:3: error: 'integer' was not declared in this scope
   integer = fenzi / fenmu;//整数部分,整数除以整数得到整数部分
   ^
0_0_27882525_17146.cpp:40:3: error: 'n1' was not declared in this scope
   n1 = integer;//整数部分
   ^
0_0_27882525_17146.cpp:41:3: error: 'n2' was not declared in this scope
   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-10-06 04:44:16, Gzip enabled