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_39406755_12796.cpp:11:7: error: 'i64' does not name a type
   11 | const i64 mod = static_cast < i64 > (1e9) + 7;
      |       ^~~
0_0_39406755_12796.cpp:12:1: error: 'i64' does not name a type
   12 | i64 g[1025][1025], f[1025], nw[1025];
      | ^~~
0_0_39406755_12796.cpp: In function 'void solve()':
0_0_39406755_12796.cpp:19:3: error: 'f' was not declared in this scope
   19 |   f[0] = 1;
      |   ^
0_0_39406755_12796.cpp:24:37: error: 'nw' was not declared in this scope; did you mean 'n'?
   24 |     for (int i = 0;i <= 1000; ++ i) nw[i] = f[i];
      |                                     ^~
      |                                     n
0_0_39406755_12796.cpp:26:9: error: 'g' was not declared in this scope
   26 |       f[g[a][i]] = (f[g[a][i]] + f[i]) % mod;
      |         ^
0_0_39406755_12796.cpp:26:42: error: 'mod' was not declared in this scope; did you mean 'modf'?
   26 |       f[g[a][i]] = (f[g[a][i]] + f[i]) % mod;
      |                                          ^~~
      |                                          modf
0_0_39406755_12796.cpp:28:28: error: 'mod' was not declared in this scope; did you mean 'modf'?
   28 |     f[a] = (f[a] + f[0]) % mod;
      |                            ^~~
      |                            modf
0_0_39406755_12796.cpp:30:3: error: 'i64' was not declared in this scope
   30 |   i64 ans = 0;
      |   ^~~
0_0_39406755_12796.cpp:31:11: error: expected ';' before 'i'
   31 |   for (i64 i = 1;i <= 1000; ++ i) ans += (f[i] * i % mod);
      |           ^~
      |           ;
0_0_39406755_12796.cpp:31:18: error: 'i' was not declared in this scope
   31 |   for (i64 i = 1;i <= 1000; ++ i) ans += (f[i] * i % mod);
      |                  ^
0_0_39406755_12796.cpp:31:35: error: 'ans' was not declared in this scope; did you mean 'abs'?
   31 |   for (i64 i = 1;i <= 1000; ++ i) ans += (f[i] * i % mod);
      |                                   ^~~
      |                                   abs
0_0_39406755_12796.cpp:31:54: error: 'mod' was not declared in this scope; did you mean 'modf'?
   31 |   for (i64 i = 1;i <= 1000; ++ i) ans += (f[i] * i % mod);
      |                                                      ^~~
      |                                                      modf
0_0_39406755_12796.cpp:32:21: error: 'ans' was not declared in this scope; did you mean 'abs'?
   32 |   printf ("%lld\n", ans % mod);
      |                     ^~~
      |                     abs
0_0_39406755_12796.cpp:32:27: error: 'mod' was not declared in this scope; did you mean 'modf'?
   32 |   printf ("%lld\n", ans % mod);
      |                           ^~~
      |                           modf
0_0_39406755_12796.cpp: In function 'int main()':
0_0_39406755_12796.cpp:38:7: error: 'g' was not declared in this scope
   38 |       g[i][j] = 1ll * gcd (i, j);
      |       ^


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-25 10:30:51, Gzip enabled