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_33953043_22284.cpp:12:22: error: expected primary-expression before ';' token
  const int MAXN =  + ;
                      ^
0_0_33953043_22284.cpp: In function 'int gcd(int, int)':
0_0_33953043_22284.cpp:17:38: error: expected primary-expression before '?' token
  int gcd(int a, int b ){return b ==  ? a : gcd(b, a % b);}
                                      ^
0_0_33953043_22284.cpp: In function 'int ext_gcd(int, int, int&, int&)':
0_0_33953043_22284.cpp:19:15: error: expected primary-expression before ')' token
      if (b == ) {x = ; y = ; return a;}
               ^
0_0_33953043_22284.cpp:19:22: error: expected primary-expression before ';' token
      if (b == ) {x = ; y = ; return a;}
                      ^
0_0_33953043_22284.cpp:19:28: error: expected primary-expression before ';' token
      if (b == ) {x = ; y = ; return a;}
                            ^
0_0_33953043_22284.cpp: In function 'int Inval(int, int, int)':
0_0_33953043_22284.cpp:29:18: error: expected primary-expression before '?' token
      return e <  ? e + n : e;
                  ^
0_0_33953043_22284.cpp: In function 'int pow_mod(LL, int, int)':
0_0_33953043_22284.cpp:33:15: error: expected primary-expression before ')' token
      if (b == ) return a % c;
               ^
0_0_33953043_22284.cpp:34:30: error: expected primary-expression before ',' token
      LL tmp = pow_mod(a, b / , c);
                              ^
0_0_33953043_22284.cpp:35:15: error: expected primary-expression before '==' token
      if (b %  == ) return (tmp * tmp) % c;
               ^
0_0_33953043_22284.cpp:35:18: error: expected primary-expression before ')' token
      if (b %  == ) return (tmp * tmp) % c;
                  ^
0_0_33953043_22284.cpp: In function 'int BSGS(int, int, int)':
0_0_33953043_22284.cpp:40:16: error: expected primary-expression before '%' token
      LL buf =  % C, D = buf, K;
                ^
0_0_33953043_22284.cpp:41:14: error: expected primary-expression before ',' token
      int d = , tmp;
              ^
0_0_33953043_22284.cpp:43:19: error: expected primary-expression before ';' token
      for (int i = ; i <= ; buf = buf * A % C, i++)
                   ^
0_0_33953043_22284.cpp:43:26: error: expected primary-expression before ';' token
      for (int i = ; i <= ; buf = buf * A % C, i++)
                          ^
0_0_33953043_22284.cpp:46:14: error: 'tmp' was not declared in this scope
      while ((tmp = gcd(A, C)) != ){
              ^
0_0_33953043_22284.cpp:46:34: error: expected primary-expression before ')' token
      while ((tmp = gcd(A, C)) != ){
                                  ^
0_0_33953043_22284.cpp:47:33: error: expected primary-expression before ')' token
            if (B % gcd(A, C) != ) return -;//为了解不定方程
                                 ^
0_0_33953043_22284.cpp:47:43: error: expected primary-expression before ';' token
            if (B % gcd(A, C) != ) return -;//为了解不定方程
                                           ^
0_0_33953043_22284.cpp:51:12: error: 'D' was not declared in this scope
            D = D * A / tmp % C;
            ^
0_0_33953043_22284.cpp:55:13: error: expected primary-expression before '%' token
      buf =  % C;
             ^
0_0_33953043_22284.cpp:56:19: error: expected primary-expression before ';' token
      for (int i = ; i <= M; buf = buf * A % C, i++)
                   ^
0_0_33953043_22284.cpp:59:6: error: 'K' was not declared in this scope
      K = pow_mod ((LL) A, M, C);
      ^
0_0_33953043_22284.cpp:60:19: error: expected primary-expression before ';' token
      for (int i = ; i <= M; D = D * K % C, i++){
                   ^
0_0_33953043_22284.cpp:60:29: error: 'D' was not declared in this scope
      for (int i = ; i <= M; D = D * K % C, i++){
                             ^
0_0_33953043_22284.cpp:61:10: error: 'tmp' was not declared in this scope
          tmp = Inval((int) D ,B, C);//D和C是互质的
          ^
0_0_33953043_22284.cpp:63:26: error: expected ')' before '.' token
          if (tmp >=  && H.find(tmp) != H.end()) return i * M + H[tmp] + d;
                          ^
0_0_33953043_22284.cpp:65:14: error: expected primary-expression before ';' token
      return -;//找不到
              ^
0_0_33953043_22284.cpp:63:25: error: label 'H' used but not defined
          if (tmp >=  && H.find(tmp) != H.end()) return i * M + H[tmp] + d;
                         ^
0_0_33953043_22284.cpp: In function 'int main()':
0_0_33953043_22284.cpp:74:22: error: expected primary-expression before ')' token
            if (tmp < ) printf("Orz,I can’t find D!\n");
                      ^
0_0_33953043_22284.cpp:77:6: error: return-statement with no value, in function returning 'int' [-fpermissive]
      return ;
      ^


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-10 01:11:21, Gzip enabled