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_20613787_29163.cpp:10:5: error: expected unqualified-id before '=' token
     =i) ans+=(k-1)*3;                            else ans+=k*3;              }              for (i=1;i*i*i<=n;i++)                  for (j=i+1;j<=n;j++)                 {                          k=n/i/j;                          if (k>j) ans+=(k-j)*6;                               else break;                 }               printf("Case %d: %I64d\n",++cases,ans);      }      return 0;}
     ^
0_0_20613787_29163.cpp:10:50: error: expected unqualified-id before 'else'
     =i) ans+=(k-1)*3;                            else ans+=k*3;              }              for (i=1;i*i*i<=n;i++)                  for (j=i+1;j<=n;j++)                 {                          k=n/i/j;                          if (k>j) ans+=(k-j)*6;                               else break;                 }               printf("Case %d: %I64d\n",++cases,ans);      }      return 0;}
                                                  ^
0_0_20613787_29163.cpp:10:78: error: expected declaration before '}' token
     =i) ans+=(k-1)*3;                            else ans+=k*3;              }              for (i=1;i*i*i<=n;i++)                  for (j=i+1;j<=n;j++)                 {                          k=n/i/j;                          if (k>j) ans+=(k-j)*6;                               else break;                 }               printf("Case %d: %I64d\n",++cases,ans);      }      return 0;}
                                                                              ^


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:07:22, Gzip enabled