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_29436631_25469.cpp: In function 'int main()':
0_0_29436631_25469.cpp:28:69: error: 'll' was not declared in this scope
                 f[i][j] = (f[i-1][min(m,j+k)]-f[i-1][max(0,j-k-1)]-(ll)g[i-1][min(m,j+k)]+g[i-1][max(0,j-k)])%P;
                                                                     ^
0_0_29436631_25469.cpp:28:72: error: expected ')' before 'g'
                 f[i][j] = (f[i-1][min(m,j+k)]-f[i-1][max(0,j-k-1)]-(ll)g[i-1][min(m,j+k)]+g[i-1][max(0,j-k)])%P;
                                                                        ^
0_0_29436631_25469.cpp:29:99: error: expected ')' before 'g'
                 g[i][j] = j>=1&&a[i][j]==a[i][j-1]?(f[i-1][min(m,j+k-1)]-f[i-1][max(0,j-k-1)]-(ll)g[i-1][min(m,j+k-1)]+g[i-1][max(0,j-k)])%P:0;
                                                                                                   ^
0_0_29436631_25469.cpp:29:143: error: expected ':' before ';' token
                 g[i][j] = j>=1&&a[i][j]==a[i][j-1]?(f[i-1][min(m,j+k-1)]-f[i-1][max(0,j-k-1)]-(ll)g[i-1][min(m,j+k-1)]+g[i-1][max(0,j-k)])%P:0;
                                                                                                                                               ^
0_0_29436631_25469.cpp:29:143: error: expected primary-expression before ';' token
0_0_29436631_25469.cpp:33:38: error: 'll' was not declared in this scope
         REP(i,1,m) ans=(ans+f[n][i]-(ll)g[n][i])%P;
                                      ^
0_0_29436631_25469.cpp:33:41: error: expected ')' before 'g'
         REP(i,1,m) ans=(ans+f[n][i]-(ll)g[n][i])%P;
                                         ^


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-29 18:02:20, Gzip enabled