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_27194598_17212.cpp: In function 'll powmod(ll, ll)':
0_0_27194598_17212.cpp:16:60: error: 'assert' was not declared in this scope
 ll powmod(ll a, ll b) { ll res = 1; a %= mod; assert(b >= 0); for (; b; b >>= 1) { if (b & 1)res = res * a%mod; a = a * a%mod; }return res; }
                                                            ^
0_0_27194598_17212.cpp: In function 'int main()':
0_0_27194598_17212.cpp:69:29: error: 'sort' was not declared in this scope
   sort(q + 1, q + m + 1, cmp);
                             ^
0_0_27194598_17212.cpp:10:41: error: 'memset' was not declared in this scope
 #define mem(a, b) memset(a, b, sizeof(a))
                                         ^
0_0_27194598_17212.cpp:74:3: note: in expansion of macro 'mem'
   mem(gay, 0);
   ^


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-29 21:41:32, Gzip enabled