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_25012623_1481.cpp:4:1: error: 'longlong' does not name a type
 longlong gcd(longlong a,longlong b)
 ^
0_0_25012623_1481.cpp: In function 'int main()':
0_0_25012623_1481.cpp:11:2: error: 'longlong' was not declared in this scope
  longlong n,i,k,ans,num;
  ^
0_0_25012623_1481.cpp:12:28: error: 'n' was not declared in this scope
  while(~scanf("%Ild %Ild",&n,&k))
                            ^
0_0_25012623_1481.cpp:12:31: error: 'k' was not declared in this scope
  while(~scanf("%Ild %Ild",&n,&k))
                               ^
0_0_25012623_1481.cpp:14:3: error: 'ans' was not declared in this scope
   ans=1;
   ^
0_0_25012623_1481.cpp:16:7: error: 'i' was not declared in this scope
   for(i=0;i<n;i++)
       ^
0_0_25012623_1481.cpp:18:18: error: 'num' was not declared in this scope
    scanf("%Ild",&num);
                  ^
0_0_25012623_1481.cpp:19:23: error: 'gcd' was not declared in this scope
    ans=ans/gcd(ans,num)*num;
                       ^


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-12-02 05:27:33, Gzip enabled