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_38269770_24114.cpp: In function 'void sieve(int)':
0_0_38269770_24114.cpp:24:57: error: invalid conversion from 'int (*)(int, int)' to 'int' [-fpermissive]
  for (int i = n - 1; i >= 0; --i) inv[i] = mul(inv[i + 1], i + 1);
                                                         ^
0_0_38269770_24114.cpp:9:5: note: initializing argument 1 of 'int mul(int, int)'
 int mul(int x, int y) {return 1LL * x * y % P;}
     ^
0_0_38269770_24114.cpp:24:42: error: assignment of read-only location '*(inv + ((sizetype)i))'
  for (int i = n - 1; i >= 0; --i) inv[i] = mul(inv[i + 1], i + 1);
                                          ^
0_0_38269770_24114.cpp:24:42: error: cannot convert 'int' to 'int(int, int)' in assignment
0_0_38269770_24114.cpp: In function 'void solve()':
0_0_38269770_24114.cpp:31:18: error: 'strlen' was not declared in this scope
  n = strlen(s + 1);
                  ^
0_0_38269770_24114.cpp:32:31: error: 'str' was not declared in this scope
  for (int i = 1; i <= n; ++i) str[i] -= 48;
                               ^
0_0_38269770_24114.cpp:40:50: error: 'str' was not declared in this scope
   ans = inc(ans, mul(f[i - 1], mul(pow10[n - i], str[i])));
                                                  ^
0_0_38269770_24114.cpp:44:22: error: 'str' was not declared in this scope
   ans = inc(ans, mul(str[i], sum));
                      ^


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-23 09:45:48, Gzip enabled