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_20983043_1635.cpp:17:26: error: stray '#' in program
     for(int i=2;i<maxn;i++)
                          ^
0_0_20983043_1635.cpp:17:31: error: stray '#' in program
     for(int i=2;i<maxn;i++)
                               ^
0_0_20983043_1635.cpp:19:32: error: stray '#' in program
         for(int j=1;j<2*maxn;j++)
                                ^
0_0_20983043_1635.cpp:19:37: error: stray '#' in program
         for(int j=1;j<2*maxn;j++)
                                     ^
0_0_20983043_1635.cpp:21:40: error: stray '#' in program
             dp[i][j][0]=(dp[i-1][j][0]+2*dp[i-1][j][1]+dp[i-1][j-1][0]+dp[i-1][j-1][1])%mod;
                                        ^
0_0_20983043_1635.cpp:21:60: error: stray '#' in program
             dp[i][j][0]=(dp[i-1][j][0]+2*dp[i-1][j][1]+dp[i-1][j-1][0]+dp[i-1][j-1][1])%mod;
                                                            ^
0_0_20983043_1635.cpp:21:80: error: stray '#' in program
             dp[i][j][0]=(dp[i-1][j][0]+2*dp[i-1][j][1]+dp[i-1][j-1][0]+dp[i-1][j-1][1])%mod;
                                                                                ^
0_0_20983043_1635.cpp:23:48: error: stray '#' in program
                 dp[i][j][1]=(2*dp[i-1][j-1][0]+dp[i-1][j][1]+2*dp[i-1][j-1][1]+dp[i-1][j-2][0]+dp[i-1][j-2][1])%mod;
                                                ^
0_0_20983043_1635.cpp:23:66: error: stray '#' in program
                 dp[i][j][1]=(2*dp[i-1][j-1][0]+dp[i-1][j][1]+2*dp[i-1][j-1][1]+dp[i-1][j-2][0]+dp[i-1][j-2][1])%mod;
                                                                  ^
0_0_20983043_1635.cpp:23:88: error: stray '#' in program
                 dp[i][j][1]=(2*dp[i-1][j-1][0]+dp[i-1][j][1]+2*dp[i-1][j-1][1]+dp[i-1][j-2][0]+dp[i-1][j-2][1])%mod;
                                                                                        ^
0_0_20983043_1635.cpp:23:108: error: stray '#' in program
                 dp[i][j][1]=(2*dp[i-1][j-1][0]+dp[i-1][j][1]+2*dp[i-1][j-1][1]+dp[i-1][j-2][0]+dp[i-1][j-2][1])%mod;
                                                                                                            ^
0_0_20983043_1635.cpp:25:48: error: stray '#' in program
                 dp[i][j][1]=(2*dp[i-1][j-1][0]+dp[i-1][j][1]+2*dp[i-1][j-1][1])%mod;
                                                ^
0_0_20983043_1635.cpp:25:66: error: stray '#' in program
                 dp[i][j][1]=(2*dp[i-1][j-1][0]+dp[i-1][j][1]+2*dp[i-1][j-1][1])%mod;
                                                                  ^
0_0_20983043_1635.cpp:34:36: error: stray '#' in program
         printf("%d\n",(dp[n][k][0]+dp[n][k][1])%mod);
                                    ^
0_0_20983043_1635.cpp: In function 'int main()':
0_0_20983043_1635.cpp:17:29: error: expected ')' before ';' token
     for(int i=2;i<maxn;i++)
                             ^
0_0_20983043_1635.cpp:17:32: error: lvalue required as unary '&' operand
     for(int i=2;i<maxn;i++)
                                ^
0_0_20983043_1635.cpp:17:35: error: expected primary-expression before ')' token
     for(int i=2;i<maxn;i++)
                                   ^
0_0_20983043_1635.cpp:34:39: error: expected ')' before ';' token
         printf("%d\n",(dp[n][k][0]+dp[n][k][1])%mod);
                                       ^
0_0_20983043_1635.cpp:34:39: error: expected ')' before ';' token
0_0_20983043_1635.cpp:34:51: error: expected ';' before ')' token
         printf("%d\n",(dp[n][k][0]+dp[n][k][1])%mod);
                                                   ^


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-12-05 10:18:04, Gzip enabled