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]琛ㄧず杈撳叆涓簄鏃,浠1鍒皀杩欎簺鏁扮殑鏈灏忓叕鍊嶆暟
         ^
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-07-01 18:03:34, Gzip enabled