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_20672007_9861.cpp:1:9: error: '__int64' was not declared in this scope
 int gcd(__int64 a,__int64 b)
         ^
0_0_20672007_9861.cpp:1:19: error: '__int64' was not declared in this scope
 int gcd(__int64 a,__int64 b)
                   ^
0_0_20672007_9861.cpp:1:28: error: expression list treated as compound expression in initializer [-fpermissive]
 int gcd(__int64 a,__int64 b)
                            ^
0_0_20672007_9861.cpp:2:1: error: expected ',' or ';' before '{' token
 {
 ^
0_0_20672007_9861.cpp: In function 'int main()':
0_0_20672007_9861.cpp:8:5: error: '__int64' was not declared in this scope
     __int64 a[10005];
     ^
0_0_20672007_9861.cpp:9:18: error: 'scanf' was not declared in this scope
     scanf("%d",&t);
                  ^
0_0_20672007_9861.cpp:15:28: error: 'a' was not declared in this scope
             scanf("%I64d",&a[i]);
                            ^
0_0_20672007_9861.cpp:18:21: error: expected ';' before 'p'
             __int64 p=a[i]*a[i+1];
                     ^
0_0_20672007_9861.cpp:19:13: error: 'a' was not declared in this scope
             a[i+1]=p/gcd(a[i],a[i+1]); //用每两个数的后一个数保存这两个数的最小公倍数
             ^
0_0_20672007_9861.cpp:19:20: error: 'p' was not declared in this scope
             a[i+1]=p/gcd(a[i],a[i+1]); //用每两个数的后一个数保存这两个数的最小公倍数
                    ^
0_0_20672007_9861.cpp:19:37: error: 'gcd' cannot be used as a function
             a[i+1]=p/gcd(a[i],a[i+1]); //用每两个数的后一个数保存这两个数的最小公倍数
                                     ^
0_0_20672007_9861.cpp:21:26: error: 'a' was not declared in this scope
         printf("%I64d\n",a[n-1]);
                          ^
0_0_20672007_9861.cpp:21:32: error: 'printf' was not declared in this scope
         printf("%I64d\n",a[n-1]);
                                ^


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-02 04:26:55, Gzip enabled