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_30513098_14621.cpp:47:1: error: 'i128' does not name a type
 i128 gcd(i128 a,i128 b){return b?gcd(b,a%b):a;}
 ^
0_0_30513098_14621.cpp: In function 'int main()':
0_0_30513098_14621.cpp:52:9: error: 'i128' was not declared in this scope
         i128 n;cin>>n;
         ^
0_0_30513098_14621.cpp:52:21: error: 'n' was not declared in this scope
         i128 n;cin>>n;
                     ^
0_0_30513098_14621.cpp:54:18: error: expected ';' before 'i'
         for(i128 i=1;;i++){
                  ^
0_0_30513098_14621.cpp:54:23: error: 'i' was not declared in this scope
         for(i128 i=1;;i++){
                       ^
0_0_30513098_14621.cpp:62:14: error: expected ';' before 'lim2'
         i128 lim2=(i128)(lim+1)*(lim+1)*(lim+1);
              ^
0_0_30513098_14621.cpp:63:18: error: expected ';' before 'i'
         for(i128 i=n+1;i<lim2;i++){
                  ^
0_0_30513098_14621.cpp:63:24: error: 'i' was not declared in this scope
         for(i128 i=n+1;i<lim2;i++){
                        ^
0_0_30513098_14621.cpp:63:26: error: 'lim2' was not declared in this scope
         for(i128 i=n+1;i<lim2;i++){
                          ^
0_0_30513098_14621.cpp:65:27: error: 'gcd' was not declared in this scope
             ans-=gcd(i,lim)%mod;
                           ^


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-09-21 09:11:09, Gzip enabled