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_36705863_20320.cpp: In member function 'void tree::upd(int, int, int, int, int)':
0_0_36705863_20320.cpp:103:36: error: 'gcd' was not declared in this scope
   t[v] = gcd(t[v * 2], t[v * 2 + 1]);
                                    ^
0_0_36705863_20320.cpp: In member function 'int tree::get(int, int, int, int, int)':
0_0_36705863_20320.cpp:112:72: error: 'gcd' was not declared in this scope
   return gcd(get(l, r, v * 2, tl, tm), get(l, r, v * 2 + 1, tm + 1, tr));
                                                                        ^
0_0_36705863_20320.cpp: In function 'void solve()':
0_0_36705863_20320.cpp:194:31: error: 'gcd' was not declared in this scope
     int g = gcd(L[j].F, R[k].F);
                               ^
0_0_36705863_20320.cpp:206:31: error: 'gcd' was not declared in this scope
     int g = gcd(L[j].F, R[k].F);
                               ^


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-03 08:17:25, Gzip enabled