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_13775700_18271.cpp: In function 'void precompute()':
0_0_13775700_18271.cpp:26:11: error: incompatible types in assignment of 'long long int' to 'long long int [2000001]'
         p = p[i - 1] * i % MOD;
           ^
0_0_13775700_18271.cpp:29:31: error: invalid conversion from 'long long int*' to 'long long int' [-fpermissive]
         ext_gcd(p, MOD, &a, &b);
                               ^
0_0_13775700_18271.cpp:10:6: note: initializing argument 1 of 'void ext_gcd(long long int, long long int, long long int*, long long int*)'
 void ext_gcd(long long x, long long y, long long *a, long long *b) {
      ^
0_0_13775700_18271.cpp:30:13: error: incompatible types in assignment of 'long long int' to 'long long int [2000001]'
         rev = (a % MOD + MOD) % MOD;
             ^


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-22 23:48:14, Gzip enabled