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_38723463_29372.cpp:6:14: error: 'long long long' is too long for GCC
    6 | #define int  long long
      |              ^~~~
0_0_38723463_29372.cpp:7:11: note: in expansion of macro 'int'
    7 | #define a int
      |           ^~~
0_0_38723463_29372.cpp:26:28: note: in expansion of macro 'a'
   26 | long long q_mul( long long a, long long b, long long mod ) //快速计算 (a*b) % mod
      |                            ^
0_0_38723463_29372.cpp:6:19: error: 'long long long' is too long for GCC
    6 | #define int  long long
      |                   ^~~~
0_0_38723463_29372.cpp:7:11: note: in expansion of macro 'int'
    7 | #define a int
      |           ^~~
0_0_38723463_29372.cpp:26:28: note: in expansion of macro 'a'
   26 | long long q_mul( long long a, long long b, long long mod ) //快速计算 (a*b) % mod
      |                            ^
0_0_38723463_29372.cpp: In function 'long long int q_mul(long long int, long long int, long long int)':
0_0_38723463_29372.cpp:6:14: error: expected primary-expression before 'long'
    6 | #define int  long long
      |              ^~~~
0_0_38723463_29372.cpp:7:11: note: in expansion of macro 'int'
    7 | #define a int
      |           ^~~
0_0_38723463_29372.cpp:34:24: note: in expansion of macro 'a'
   34 |             ans =(ans+ a)%mod;
      |                        ^
0_0_38723463_29372.cpp:34:23: error: expected ')' before 'long'
   34 |             ans =(ans+ a)%mod;
      |                  ~    ^
      |                       )
0_0_38723463_29372.cpp:37:11: error: expected unqualified-id before '=' token
   37 |         a = (a + a) % mod;
      |           ^
0_0_38723463_29372.cpp: At global scope:
0_0_38723463_29372.cpp:6:14: error: 'long long long' is too long for GCC
    6 | #define int  long long
      |              ^~~~
0_0_38723463_29372.cpp:7:11: note: in expansion of macro 'int'
    7 | #define a int
      |           ^~~
0_0_38723463_29372.cpp:43:28: note: in expansion of macro 'a'
   43 | long long q_pow( long long a, long long b, long long mod ) //快速计算 (a^b) % mod
      |                            ^
0_0_38723463_29372.cpp:6:19: error: 'long long long' is too long for GCC
    6 | #define int  long long
      |                   ^~~~
0_0_38723463_29372.cpp:7:11: note: in expansion of macro 'int'
    7 | #define a int
      |           ^~~
0_0_38723463_29372.cpp:43:28: note: in expansion of macro 'a'
   43 | long long q_pow( long long a, long long b, long long mod ) //快速计算 (a^b) % mod
      |                            ^
0_0_38723463_29372.cpp: In function 'long long int q_pow(long long int, long long int, long long int)':
0_0_38723463_29372.cpp:6:14: error: expected primary-expression before 'long'
    6 | #define int  long long
      |              ^~~~
0_0_38723463_29372.cpp:7:11: note: in expansion of macro 'int'
    7 | #define a int
      |           ^~~
0_0_38723463_29372.cpp:50:31: note: in expansion of macro 'a'
   50 |             ans = q_mul( ans, a, mod );
      |                               ^
0_0_38723463_29372.cpp:53:11: error: expected unqualified-id before '=' token
   53 |         a = q_mul( a, a, mod );
      |           ^
0_0_38723463_29372.cpp: At global scope:
0_0_38723463_29372.cpp:6:14: error: 'long long long' is too long for GCC
    6 | #define int  long long
      |              ^~~~
0_0_38723463_29372.cpp:7:11: note: in expansion of macro 'int'
    7 | #define a int
      |           ^~~
0_0_38723463_29372.cpp:58:25: note: in expansion of macro 'a'
   58 | bool witness( long long a, long long n )//miller_rabin算法的精华
      |                         ^
0_0_38723463_29372.cpp:6:19: error: 'long long long' is too long for GCC
    6 | #define int  long long
      |                   ^~~~
0_0_38723463_29372.cpp:7:11: note: in expansion of macro 'int'
    7 | #define a int
      |           ^~~
0_0_38723463_29372.cpp:58:25: note: in expansion of macro 'a'
   58 | bool witness( long long a, long long n )//miller_rabin算法的精华
      |                         ^
0_0_38723463_29372.cpp: In function 'bool witness(long long int, long long int)':
0_0_38723463_29372.cpp:6:14: error: expected primary-expression before 'long'
    6 | #define int  long long
      |              ^~~~
0_0_38723463_29372.cpp:7:11: note: in expansion of macro 'int'
    7 | #define a int
      |           ^~~
0_0_38723463_29372.cpp:69:26: note: in expansion of macro 'a'
   69 |     long long x = q_pow( a, tem, n ); //得到a^r mod n
      |                          ^
0_0_38723463_29372.cpp: In function 'bool miller_rabin(long long int)':
0_0_38723463_29372.cpp:6:14: error: 'long long long' is too long for GCC
    6 | #define int  long long
      |              ^~~~
0_0_38723463_29372.cpp:7:11: note: in expansion of macro 'int'
    7 | #define a int
      |           ^~~
0_0_38723463_29372.cpp:89:19: note: in expansion of macro 'a'
   89 |         long long a = Random( n - 2 ) + 1; //得到随机检验算子 a
      |                   ^
0_0_38723463_29372.cpp:6:19: error: 'long long long' is too long for GCC
    6 | #define int  long long
      |                   ^~~~
0_0_38723463_29372.cpp:7:11: note: in expansion of macro 'int'
    7 | #define a int
      |           ^~~
0_0_38723463_29372.cpp:89:19: note: in expansion of macro 'a'
   89 |         long long a = Random( n - 2 ) + 1; //得到随机检验算子 a
      |                   ^
0_0_38723463_29372.cpp:89:21: error: expected unqualified-id before '=' token
   89 |         long long a = Random( n - 2 ) + 1; //得到随机检验算子 a
      |                     ^
0_0_38723463_29372.cpp:6:14: error: expected primary-expression before 'long'
    6 | #define int  long long
      |              ^~~~
0_0_38723463_29372.cpp:7:11: note: in expansion of macro 'int'
    7 | #define a int
      |           ^~~
0_0_38723463_29372.cpp:90:22: note: in expansion of macro 'a'
   90 |         if(!witness( a, n ))                                            //用a检验n是否是素数
      |                      ^


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