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_29979457_29018.cpp: In function 'long long int multi(long long int, long long int, long long int)':
0_0_29979457_29018.cpp:7:9: error: expected identifier before '(' token
  return (__int128)x * y % mod;
         ^
0_0_29979457_29018.cpp:7:2: error: named return values are no longer supported
  return (__int128)x * y % mod;
  ^
0_0_29979457_29018.cpp:19:33: error: 'n' was not declared in this scope
   if (y & 1)res = multi(res, x, n);
                                 ^
0_0_29979457_29018.cpp:21:19: error: 'n' was not declared in this scope
   x = multi(x, x, n);
                   ^
0_0_29979457_29018.cpp: In function 'bool miller_rabin(long long int)':
0_0_29979457_29018.cpp:44:23: error: 'mypow' was not declared in this scope
   ll b = mypow(a, t, n);
                       ^
0_0_29979457_29018.cpp: In function 'int main()':
0_0_29979457_29018.cpp:63:40: error: 'mypow' was not declared in this scope
    ans = multi(ans, mypow(now, P - 2, P), P);
                                        ^


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-25 03:22:18, Gzip enabled