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_38709895_2594.cpp:4:13: error: 'int64_t' does not name a type
    4 | using i64 = int64_t;
      |             ^~~~~~~
0_0_38709895_2594.cpp:3:1: note: 'int64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
    2 | #include <bitset>
  +++ |+#include <cstdint>
    3 | 
0_0_38709895_2594.cpp:7:11: error: 'i64' does not name a type
    7 | constexpr i64 mod = 1e9 + 7;
      |           ^~~
0_0_38709895_2594.cpp:9:1: error: 'i64' does not name a type
    9 | i64 fpow(i64 x, i64 r)
      | ^~~
0_0_38709895_2594.cpp:22:5: error: 'i64' does not name a type
   22 |     i64 fac[N], ifac[N];
      |     ^~~
0_0_38709895_2594.cpp: In lambda function:
0_0_38709895_2594.cpp:25:9: error: 'fac' was not declared in this scope
   25 |         fac[0] = 1;
      |         ^~~
0_0_38709895_2594.cpp:27:39: error: 'mod' was not declared in this scope
   27 |             fac[i] = fac[i - 1] * i % mod;
      |                                       ^~~
0_0_38709895_2594.cpp:28:9: error: 'ifac' was not declared in this scope
   28 |         ifac[N - 5] = fpow(fac[N - 5], mod - 2);
      |         ^~~~
0_0_38709895_2594.cpp:28:40: error: 'mod' was not declared in this scope
   28 |         ifac[N - 5] = fpow(fac[N - 5], mod - 2);
      |                                        ^~~
0_0_38709895_2594.cpp:28:23: error: 'fpow' was not declared in this scope
   28 |         ifac[N - 5] = fpow(fac[N - 5], mod - 2);
      |                       ^~~~
0_0_38709895_2594.cpp: At global scope:
0_0_38709895_2594.cpp:34:12: error: 'i64' does not name a type
   34 |     inline i64 C(int n, int m)
      |            ^~~
0_0_38709895_2594.cpp:40:12: error: 'i64' does not name a type
   40 |     inline i64 A(int n, int m)
      |            ^~~
0_0_38709895_2594.cpp: In function 'int main()':
0_0_38709895_2594.cpp:66:9: error: 'i64' was not declared in this scope
   66 |         i64 ans = 0;
      |         ^~~
0_0_38709895_2594.cpp:75:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   75 |                 ans = (ans + C(cnt, 4) * C(cnt_i - 4, 2) + C(cnt, 4) * C(cnt_j - 4, 2)) % mod;
      |                 ^~~
      |                 abs
0_0_38709895_2594.cpp:75:30: error: 'C' was not declared in this scope
   75 |                 ans = (ans + C(cnt, 4) * C(cnt_i - 4, 2) + C(cnt, 4) * C(cnt_j - 4, 2)) % mod;
      |                              ^
0_0_38709895_2594.cpp:75:91: error: 'mod' was not declared in this scope
   75 |                 ans = (ans + C(cnt, 4) * C(cnt_i - 4, 2) + C(cnt, 4) * C(cnt_j - 4, 2)) % mod;
      |                                                                                           ^~~
0_0_38709895_2594.cpp:77:22: error: 'ans' was not declared in this scope; did you mean 'abs'?
   77 |         std::cout << ans << '\n';
      |                      ^~~
      |                      abs


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-16 15:41:48, Gzip enabled