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_38954845_705.cpp:2:7: error: 'll' does not name a type
    2 | const ll mod = 998244353;
      |       ^~
0_0_38954845_705.cpp:3:7: error: 'll' does not name a type
    3 | const ll maxn = 1e6 + 5;
      |       ^~
0_0_38954845_705.cpp:4:1: error: 'll' does not name a type
    4 | ll fac[maxn], invfac[maxn];
      | ^~
0_0_38954845_705.cpp:6:1: error: 'll' does not name a type
    6 | ll quickmi(ll a, ll b, ll p) //求 a^b 模数为 p
      | ^~
0_0_38954845_705.cpp: In function 'void get_factorial()':
0_0_38954845_705.cpp:20:5: error: 'fac' was not declared in this scope
   20 |     fac[0] = invfac[0] = 1;
      |     ^~~
0_0_38954845_705.cpp:20:14: error: 'invfac' was not declared in this scope
   20 |     fac[0] = invfac[0] = 1;
      |              ^~~~~~
0_0_38954845_705.cpp:21:25: error: 'maxn' was not declared in this scope
   21 |     for (int i = 1; i < maxn; i ++ )
      |                         ^~~~
0_0_38954845_705.cpp:23:35: error: 'mod' was not declared in this scope
   23 |         fac[i] = fac[i - 1] * i % mod; // 求阶乘
      |                                   ^~~
0_0_38954845_705.cpp:24:37: error: 'quickmi' was not declared in this scope
   24 |         invfac[i] = invfac[i - 1] * quickmi(i, mod - 2, mod) % mod; // 求逆元的阶乘
      |                                     ^~~~~~~
0_0_38954845_705.cpp: At global scope:
0_0_38954845_705.cpp:28:1: error: 'll' does not name a type
   28 | ll C(ll a, ll b)
      | ^~
0_0_38954845_705.cpp: In function 'void solve()':
0_0_38954845_705.cpp:36:21: error: 'cin' was not declared in this scope
   36 |     int n, m, a, b; cin >> n >> m >> a >> b;
      |                     ^~~
0_0_38954845_705.cpp:37:12: error: 'll' was not declared in this scope
   37 |     vector<ll> sum(n + 1); sum[1] = 1;
      |            ^~
0_0_38954845_705.cpp:37:5: error: 'vector' was not declared in this scope
   37 |     vector<ll> sum(n + 1); sum[1] = 1;
      |     ^~~~~~
0_0_38954845_705.cpp:37:16: error: 'sum' was not declared in this scope
   37 |     vector<ll> sum(n + 1); sum[1] = 1;
      |                ^~~
0_0_38954845_705.cpp:40:45: error: 'mod' was not declared in this scope
   40 |         sum[i] = sum[i - 1] + quickmi(i, m, mod);
      |                                             ^~~
0_0_38954845_705.cpp:40:31: error: 'quickmi' was not declared in this scope
   40 |         sum[i] = sum[i - 1] + quickmi(i, m, mod);
      |                               ^~~~~~~
0_0_38954845_705.cpp:43:7: error: expected ';' before 't1'
   43 |     ll t1 = a * quickmi(b, mod - 2, mod) % mod;
      |       ^~~
      |       ;
0_0_38954845_705.cpp:44:7: error: expected ';' before 't2'
   44 |     ll t2 = (b - a) * quickmi(b, mod - 2, mod) % mod;
      |       ^~~
      |       ;
0_0_38954845_705.cpp:45:16: error: 'pow1' was not declared in this scope
   45 |     vector<ll> pow1(n + 1), pow2(n + 1), pow3(n + 1);
      |                ^~~~
0_0_38954845_705.cpp:45:29: error: 'pow2' was not declared in this scope
   45 |     vector<ll> pow1(n + 1), pow2(n + 1), pow3(n + 1);
      |                             ^~~~
0_0_38954845_705.cpp:45:42: error: 'pow3' was not declared in this scope
   45 |     vector<ll> pow1(n + 1), pow2(n + 1), pow3(n + 1);
      |                                          ^~~~
0_0_38954845_705.cpp:47:15: error: 't1' was not declared in this scope
   47 |     pow1[1] = t1, pow2[1] = t2;
      |               ^~
0_0_38954845_705.cpp:47:29: error: 't2' was not declared in this scope
   47 |     pow1[1] = t1, pow2[1] = t2;
      |                             ^~
0_0_38954845_705.cpp:50:48: error: 'mod' was not declared in this scope
   50 |         pow1[i] = pow1[i - 1] * t1; pow1[i] %= mod;
      |                                                ^~~
0_0_38954845_705.cpp:54:7: error: expected ';' before 'ans'
   54 |     ll ans = 0, tmp;
      |       ^~~~
      |       ;
0_0_38954845_705.cpp:57:9: error: 'tmp' was not declared in this scope
   57 |         tmp = sum[i] * pow1[i] % mod * pow2[n - i] % mod * C(n, i) % mod;
      |         ^~~
0_0_38954845_705.cpp:57:34: error: 'mod' was not declared in this scope
   57 |         tmp = sum[i] * pow1[i] % mod * pow2[n - i] % mod * C(n, i) % mod;
      |                                  ^~~
0_0_38954845_705.cpp:57:60: error: 'C' was not declared in this scope
   57 |         tmp = sum[i] * pow1[i] % mod * pow2[n - i] % mod * C(n, i) % mod;
      |                                                            ^
0_0_38954845_705.cpp:58:9: error: 'ans' was not declared in this scope
   58 |         ans += tmp; ans %= mod;
      |         ^~~
0_0_38954845_705.cpp:60:5: error: 'cout' was not declared in this scope
   60 |     cout << ans << '\n';
      |     ^~~~
0_0_38954845_705.cpp:60:13: error: 'ans' was not declared in this scope
   60 |     cout << ans << '\n';
      |             ^~~


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-06-26 17:25:02, Gzip enabled