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_29853421_11262.cpp:4:13: error: multiple types in one declaration
 typedef int __int128;
             ^
0_0_29853421_11262.cpp:4:13: error: declaration does not declare anything [-fpermissive]
0_0_29853421_11262.cpp:14:1: error: 'LLL' does not name a type
 LLL n;
 ^
0_0_29853421_11262.cpp:30:10: error: variable or field 'add' declared void
 void add(LLL &x, LLL y) {
          ^
0_0_29853421_11262.cpp:30:10: error: 'LLL' was not declared in this scope
0_0_29853421_11262.cpp:30:15: error: 'x' was not declared in this scope
 void add(LLL &x, LLL y) {
               ^
0_0_29853421_11262.cpp:30:18: error: 'LLL' was not declared in this scope
 void add(LLL &x, LLL y) {
                  ^
0_0_29853421_11262.cpp:34:1: error: 'LLL' does not name a type
 LLL calc(int k, LLL L, LLL R) {
 ^
0_0_29853421_11262.cpp: In function 'int main()':
0_0_29853421_11262.cpp:54:14: error: 'n' was not declared in this scope
         read(n);
              ^
0_0_29853421_11262.cpp:55:9: error: 'LLL' was not declared in this scope
         LLL r = 0;
         ^
0_0_29853421_11262.cpp:56:16: error: 'r' was not declared in this scope
         for(; (r + 2) * (r + 2) * (r + 2) - 1 <= n; r++);
                ^
0_0_29853421_11262.cpp:57:13: error: expected ';' before 'ans'
         LLL ans = calc(r + 1, (r + 1) * (r + 1) * (r + 1) - 1, n);
             ^
0_0_29853421_11262.cpp:58:29: error: 'r' was not declared in this scope
         for(int i = 1; i <= r; i++) {
                             ^
0_0_29853421_11262.cpp:59:17: error: 'ans' was not declared in this scope
             add(ans, 1LL * phi[i] * ((3LL * i * Sum2(r / i)) % MOD + 3LL * Sum1(r / i) % MOD + r / i) % MOD) ;
                 ^
0_0_29853421_11262.cpp:59:108: error: 'add' was not declared in this scope
             add(ans, 1LL * phi[i] * ((3LL * i * Sum2(r / i)) % MOD + 3LL * Sum1(r / i) % MOD + r / i) % MOD) ;
                                                                                                            ^
0_0_29853421_11262.cpp:61:24: error: 'ans' was not declared in this scope
         printf("%d\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-25 16:38:39, Gzip enabled