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_26000839_30873.cpp:10:6: error: stray '#' in program
         fac[1]=fac[0]=1;
      ^
0_0_26000839_30873.cpp:10:12: error: stray '#' in program
         fac[1]=fac[0]=1;
            ^
0_0_26000839_30873.cpp:10:18: error: stray '#' in program
         fac[1]=fac[0]=1;
                  ^
0_0_26000839_30873.cpp:11:6: error: stray '#' in program
         inv[1]=inv[0]=1;
      ^
0_0_26000839_30873.cpp:11:12: error: stray '#' in program
         inv[1]=inv[0]=1;
            ^
0_0_26000839_30873.cpp:11:18: error: stray '#' in program
         inv[1]=inv[0]=1;
                  ^
0_0_26000839_30873.cpp:12:6: error: stray '#' in program
         for(int i=2;i<N;i++)
      ^
0_0_26000839_30873.cpp:12:12: error: stray '#' in program
         for(int i=2;i<N;i++)
            ^
0_0_26000839_30873.cpp:12:18: error: stray '#' in program
         for(int i=2;i<N;i++)
                  ^
0_0_26000839_30873.cpp:13:10: error: stray '#' in program
             {
          ^
0_0_26000839_30873.cpp:13:16: error: stray '#' in program
             {
                ^
0_0_26000839_30873.cpp:13:22: error: stray '#' in program
             {
                      ^
0_0_26000839_30873.cpp:13:28: error: stray '#' in program
             {
                            ^
0_0_26000839_30873.cpp:14:14: error: stray '#' in program
                     fac[i]=fac[i-1]*i%mod;
              ^
0_0_26000839_30873.cpp:14:20: error: stray '#' in program
                     fac[i]=fac[i-1]*i%mod;
                    ^
0_0_26000839_30873.cpp:14:26: error: stray '#' in program
                     fac[i]=fac[i-1]*i%mod;
                          ^
0_0_26000839_30873.cpp:14:32: error: stray '#' in program
                     fac[i]=fac[i-1]*i%mod;
                                ^
0_0_26000839_30873.cpp:14:38: error: stray '#' in program
                     fac[i]=fac[i-1]*i%mod;
                                      ^
0_0_26000839_30873.cpp:14:44: error: stray '#' in program
                     fac[i]=fac[i-1]*i%mod;
                                            ^
0_0_26000839_30873.cpp:14:50: error: stray '#' in program
                     fac[i]=fac[i-1]*i%mod;
                                                  ^
0_0_26000839_30873.cpp:15:14: error: stray '#' in program
                     inv[i]=(mod-mod/i)*inv[mod%i]%mod;
              ^
0_0_26000839_30873.cpp:15:20: error: stray '#' in program
                     inv[i]=(mod-mod/i)*inv[mod%i]%mod;
                    ^
0_0_26000839_30873.cpp:15:26: error: stray '#' in program
                     inv[i]=(mod-mod/i)*inv[mod%i]%mod;
                          ^
0_0_26000839_30873.cpp:15:32: error: stray '#' in program
                     inv[i]=(mod-mod/i)*inv[mod%i]%mod;
                                ^
0_0_26000839_30873.cpp:15:38: error: stray '#' in program
                     inv[i]=(mod-mod/i)*inv[mod%i]%mod;
                                      ^
0_0_26000839_30873.cpp:15:44: error: stray '#' in program
                     inv[i]=(mod-mod/i)*inv[mod%i]%mod;
                                            ^
0_0_26000839_30873.cpp:15:50: error: stray '#' in program
                     inv[i]=(mod-mod/i)*inv[mod%i]%mod;
                                                  ^
0_0_26000839_30873.cpp:16:12: error: stray '#' in program
             }
            ^
0_0_26000839_30873.cpp:16:18: error: stray '#' in program
             }
                  ^
0_0_26000839_30873.cpp:17:6: error: stray '#' in program
         for(int i=2;i<N;i++)
      ^
0_0_26000839_30873.cpp:17:12: error: stray '#' in program
         for(int i=2;i<N;i++)
            ^
0_0_26000839_30873.cpp:17:18: error: stray '#' in program
         for(int i=2;i<N;i++)
                  ^
0_0_26000839_30873.cpp:18:10: error: stray '#' in program
                 inv[i]=inv[i-1]*inv[i]%mod;
          ^
0_0_26000839_30873.cpp:18:16: error: stray '#' in program
                 inv[i]=inv[i-1]*inv[i]%mod;
                ^
0_0_26000839_30873.cpp:18:22: error: stray '#' in program
                 inv[i]=inv[i-1]*inv[i]%mod;
                      ^
0_0_26000839_30873.cpp:18:28: error: stray '#' in program
                 inv[i]=inv[i-1]*inv[i]%mod;
                            ^
0_0_26000839_30873.cpp:18:34: error: stray '#' in program
                 inv[i]=inv[i-1]*inv[i]%mod;
                                  ^
0_0_26000839_30873.cpp:18:40: error: stray '#' in program
                 inv[i]=inv[i-1]*inv[i]%mod;
                                        ^
0_0_26000839_30873.cpp:18:46: error: stray '#' in program
                 inv[i]=inv[i-1]*inv[i]%mod;
                                              ^
0_0_26000839_30873.cpp:22:6: error: stray '#' in program
         if (y>x) return 0;
      ^
0_0_26000839_30873.cpp:22:12: error: stray '#' in program
         if (y>x) return 0;
            ^
0_0_26000839_30873.cpp:22:18: error: stray '#' in program
         if (y>x) return 0;
                  ^
0_0_26000839_30873.cpp:23:6: error: stray '#' in program
         return fac[x]*inv[y]%mod*inv[x-y]%mod;
      ^
0_0_26000839_30873.cpp:23:12: error: stray '#' in program
         return fac[x]*inv[y]%mod*inv[x-y]%mod;
            ^
0_0_26000839_30873.cpp:23:18: error: stray '#' in program
         return fac[x]*inv[y]%mod*inv[x-y]%mod;
                  ^
0_0_26000839_30873.cpp: In function 'void init()':
0_0_26000839_30873.cpp:10:7: error: lvalue required as unary '&' operand
         fac[1]=fac[0]=1;
       ^
0_0_26000839_30873.cpp:10:13: error: lvalue required as unary '&' operand
         fac[1]=fac[0]=1;
             ^
0_0_26000839_30873.cpp:10:19: error: lvalue required as unary '&' operand
         fac[1]=fac[0]=1;
                   ^
0_0_26000839_30873.cpp:11:7: error: lvalue required as unary '&' operand
         inv[1]=inv[0]=1;
       ^
0_0_26000839_30873.cpp:11:13: error: lvalue required as unary '&' operand
         inv[1]=inv[0]=1;
             ^
0_0_26000839_30873.cpp:11:19: error: lvalue required as unary '&' operand
         inv[1]=inv[0]=1;
                   ^
0_0_26000839_30873.cpp:12:7: error: lvalue required as unary '&' operand
         for(int i=2;i<N;i++)
       ^
0_0_26000839_30873.cpp:12:13: error: lvalue required as unary '&' operand
         for(int i=2;i<N;i++)
             ^
0_0_26000839_30873.cpp:12:19: error: lvalue required as unary '&' operand
         for(int i=2;i<N;i++)
                   ^
0_0_26000839_30873.cpp:13:11: error: lvalue required as unary '&' operand
             {
           ^
0_0_26000839_30873.cpp:13:17: error: lvalue required as unary '&' operand
             {
                 ^
0_0_26000839_30873.cpp:13:23: error: lvalue required as unary '&' operand
             {
                       ^
0_0_26000839_30873.cpp:13:29: error: lvalue required as unary '&' operand
             {
                             ^
0_0_26000839_30873.cpp:14:15: error: lvalue required as unary '&' operand
                     fac[i]=fac[i-1]*i%mod;
               ^
0_0_26000839_30873.cpp:14:21: error: lvalue required as unary '&' operand
                     fac[i]=fac[i-1]*i%mod;
                     ^
0_0_26000839_30873.cpp:14:27: error: lvalue required as unary '&' operand
                     fac[i]=fac[i-1]*i%mod;
                           ^
0_0_26000839_30873.cpp:14:33: error: lvalue required as unary '&' operand
                     fac[i]=fac[i-1]*i%mod;
                                 ^
0_0_26000839_30873.cpp:14:39: error: lvalue required as unary '&' operand
                     fac[i]=fac[i-1]*i%mod;
                                       ^
0_0_26000839_30873.cpp:14:45: error: lvalue required as unary '&' operand
                     fac[i]=fac[i-1]*i%mod;
                                             ^
0_0_26000839_30873.cpp:14:51: error: lvalue required as unary '&' operand
                     fac[i]=fac[i-1]*i%mod;
                                                   ^
0_0_


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 00:53:30, Gzip enabled