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_15133524_18450.cpp: In function 'bool check(const long long int&, const long long int&)':
0_0_15133524_18450.cpp:6:53: error: 'power_mod' was not declared in this scope
     long long result = power_mod(base, number, prime);
                                                     ^
0_0_15133524_18450.cpp:8:52: error: 'multiply_mod' was not declared in this scope
         result = multiply_mod(result, result, prime);
                                                    ^
0_0_15133524_18450.cpp: In function 'long long int pollard_rho(const long long int&, const long long int&)':
0_0_15133524_18450.cpp:31:24: error: 'rand' was not declared in this scope
     long long x = rand() % (number - 1) + 1, y = x;
                        ^
0_0_15133524_18450.cpp:33:38: error: 'multiply_mod' was not declared in this scope
         x = multiply_mod(x, x, number);
                                      ^
0_0_15133524_18450.cpp:34:36: error: 'add_mod' was not declared in this scope
         x = add_mod(x, seed, number);
                                    ^
0_0_15133524_18450.cpp:35:18: error: 'y' was not declared in this scope
         if (x == y) {
                  ^
0_0_15133524_18450.cpp:38:28: error: '__gcd' is not a member of 'std'
         long long answer = std::__gcd(abs(x - y), number);
                            ^
0_0_15133524_18450.cpp:38:47: error: 'y' was not declared in this scope
         long long answer = std::__gcd(abs(x - y), number);
                                               ^
0_0_15133524_18450.cpp:38:48: error: 'abs' was not declared in this scope
         long long answer = std::__gcd(abs(x - y), number);
                                                ^
0_0_15133524_18450.cpp: At global scope:
0_0_15133524_18450.cpp:49:46: error: 'std::vector' has not been declared
 void factorize(const long long &number, std::vector<long long> &divisor) {
                                              ^
0_0_15133524_18450.cpp:49:52: error: expected ',' or '...' before '<' token
 void factorize(const long long &number, std::vector<long long> &divisor) {
                                                    ^
0_0_15133524_18450.cpp: In function 'void factorize(const long long int&, int)':
0_0_15133524_18450.cpp:52:13: error: 'divisor' was not declared in this scope
             divisor.push_back(number);
             ^
0_0_15133524_18450.cpp:56:54: error: 'rand' was not declared in this scope
                    factor = pollard_rho(number, rand() % (number - 1) + 1));
                                                      ^
0_0_15133524_18450.cpp:57:40: error: 'divisor' was not declared in this scope
             factorize(number / factor, divisor);
                                        ^


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 08:06:27, Gzip enabled