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_33756655_10622.cpp:7:7: error: 'll' does not name a type
 const ll mod = 998244353;
       ^
0_0_33756655_10622.cpp:3:18: error: 'll' does not name a type
 #define __int128 ll
                  ^
0_0_33756655_10622.cpp:16:1: note: in expansion of macro '__int128'
 __int128 N;
 ^
0_0_33756655_10622.cpp: In function 'void init(int)':
0_0_33756655_10622.cpp:22:45: error: 'mod' was not declared in this scope
         sum1[i] = (sum1[i - 1] + 1ll * i) % mod;
                                             ^
0_0_33756655_10622.cpp: At global scope:
0_0_33756655_10622.cpp:36:1: error: 'll' does not name a type
 ll calc(int n, int T) {
 ^
0_0_33756655_10622.cpp: In function 'int main()':
0_0_33756655_10622.cpp:45:14: error: 'N' was not declared in this scope
         read(N);
              ^
0_0_33756655_10622.cpp:3:18: error: 'll' was not declared in this scope
 #define __int128 ll
                  ^
0_0_33756655_10622.cpp:47:9: note: in expansion of macro '__int128'
         __int128 n3 = (__int128)n * n * n;
         ^
0_0_33756655_10622.cpp:48:12: error: expected ';' before 'ans'
         ll ans = 0;
            ^
0_0_33756655_10622.cpp:52:17: error: 'ans' was not declared in this scope
                 ans = (ans + 1ll * phi[d] * (N / d - n3 / d + 1) % mod) % mod;
                 ^
0_0_33756655_10622.cpp:52:54: error: 'n3' was not declared in this scope
                 ans = (ans + 1ll * phi[d] * (N / d - n3 / d + 1) % mod) % mod;
                                                      ^
0_0_33756655_10622.cpp:52:68: error: 'mod' was not declared in this scope
                 ans = (ans + 1ll * phi[d] * (N / d - n3 / d + 1) % mod) % mod;
                                                                    ^
0_0_33756655_10622.cpp:61:13: error: 'ans' was not declared in this scope
             ans = (ans + 1ll * phi[i] * calc(n, i) % mod) % mod;
             ^
0_0_33756655_10622.cpp:61:50: error: 'calc' was not declared in this scope
             ans = (ans + 1ll * phi[i] * calc(n, i) % mod) % mod;
                                                  ^
0_0_33756655_10622.cpp:61:54: error: 'mod' was not declared in this scope
             ans = (ans + 1ll * phi[i] * calc(n, i) % mod) % mod;
                                                      ^
0_0_33756655_10622.cpp:62:26: error: 'ans' 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.015600(s) query 1, Server time : 2024-06-26 11:48:35, Gzip enabled