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_16502151_22424.cpp:2:9: error: 'nt' was not declared in this scope
 int gcd(nt a,int b)
         ^
0_0_16502151_22424.cpp:2:14: error: expected primary-expression before 'int'
 int gcd(nt a,int b)
              ^
0_0_16502151_22424.cpp:2:19: error: expression list treated as compound expression in initializer [-fpermissive]
 int gcd(nt a,int b)
                   ^
0_0_16502151_22424.cpp:3:1: error: expected ',' or ';' before '{' token
 {
 ^
0_0_16502151_22424.cpp: In function 'int main()':
0_0_16502151_22424.cpp:12:34: error: 'gcd' cannot be used as a function
         printf("%d\n",m*n/gcd(m,n))
                                  ^


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-28 00:28:19, Gzip enabled