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_33986880_14512.cpp:3:8: error: 'll' does not name a type
 inline ll add_mod(ll x, ll y) {
        ^
0_0_33986880_14512.cpp:7:8: error: 'll' does not name a type
 inline ll sub_mod(ll x, ll y) {
        ^
0_0_33986880_14512.cpp:11:8: error: 'll' does not name a type
 inline ll mul_mod(ll x, ll y) {
        ^
0_0_33986880_14512.cpp:15:8: error: 'll' does not name a type
 inline ll sum(ll n) {
        ^
0_0_33986880_14512.cpp:22:1: error: 'll' does not name a type
 ll ssum[MAXN];
 ^
0_0_33986880_14512.cpp:23:1: error: 'll' does not name a type
 ll lsum[MAXN];
 ^
0_0_33986880_14512.cpp:26:1: error: 'll' does not name a type
 ll prime_sum(ll n) {
 ^
0_0_33986880_14512.cpp: In function 'void solve()':
0_0_33986880_14512.cpp:65:5: error: 'll' was not declared in this scope
     ll n;
     ^
0_0_33986880_14512.cpp:66:24: error: 'n' was not declared in this scope
     scanf("%lld%lld", &n, &mod);
                        ^
0_0_33986880_14512.cpp:66:31: error: 'scanf' was not declared in this scope
     scanf("%lld%lld", &n, &mod);
                               ^
0_0_33986880_14512.cpp:67:8: error: expected ';' before 'ans'
     ll ans = 0;
        ^
0_0_33986880_14512.cpp:68:5: error: 'ans' was not declared in this scope
     ans = add_mod(ans, sum(n + 1));
     ^
0_0_33986880_14512.cpp:68:33: error: 'sum' was not declared in this scope
     ans = add_mod(ans, sum(n + 1));
                                 ^
0_0_33986880_14512.cpp:68:34: error: 'add_mod' was not declared in this scope
     ans = add_mod(ans, sum(n + 1));
                                  ^
0_0_33986880_14512.cpp:69:39: error: 'prime_sum' was not declared in this scope
     ans = add_mod(ans, prime_sum(n + 1));
                                       ^
0_0_33986880_14512.cpp:70:25: error: 'sub_mod' was not declared in this scope
     ans = sub_mod(ans, 5);
                         ^
0_0_33986880_14512.cpp:71:25: error: 'printf' was not declared in this scope
     printf("%lld\n", ans);
                         ^


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-26 03:48:24, Gzip enabled