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_37758561_13567.cpp:3:1: error: 'P' does not name a type
 P = 998244353;
 ^
0_0_37758561_13567.cpp: In function 'int main()':
0_0_37758561_13567.cpp:33:62: error: 'P' was not declared in this scope
                 dp[i][0] = (1ll * dp[i - 1][0] + dp[i][0]) % P;
                                                              ^
0_0_37758561_13567.cpp:35:62: error: 'P' was not declared in this scope
                 dp[i][0] = (1ll * dp[i - 1][1] + dp[i][0]) % P;
                                                              ^
0_0_37758561_13567.cpp:40:62: error: 'P' was not declared in this scope
                 dp[i][1] = (1ll * dp[i - 1][1] + dp[i][1]) % P;
                                                              ^
0_0_37758561_13567.cpp:42:62: error: 'P' was not declared in this scope
                 dp[i][1] = (1ll * dp[i - 1][0] + dp[i][1]) % P;
                                                              ^
0_0_37758561_13567.cpp:45:55: error: 'P' was not declared in this scope
         cout << (1ll * dp[n * 2][0] + dp[n * 2][1]) % P << endl;
                                                       ^


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-01 12:31:39, Gzip enabled