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_37584792_19254.cpp:5:12: error: 'longlong' does not name a type
 #define ll longlong
            ^
0_0_37584792_19254.cpp:7:1: note: in expansion of macro 'll'
 ll cnt[Maxn*2];
 ^
0_0_37584792_19254.cpp: In function 'int main()':
0_0_37584792_19254.cpp:30:13: error: 'cnt' was not declared in this scope
      memset(cnt, 0, sizeof cnt);
             ^
0_0_37584792_19254.cpp:33:34: error: 'N' was not declared in this scope
             for (int j = 1; j <= N; j++)
                                  ^
0_0_37584792_19254.cpp:36:33: error: 'a' was not declared in this scope
                     int t = gcd(a[i], j);
                                 ^
0_0_37584792_19254.cpp:39:17: error: 'a' was not declared in this scope
             cnt[a[i]]++;
                 ^
0_0_37584792_19254.cpp:5:12: error: 'longlong' was not declared in this scope
 #define ll longlong
            ^
0_0_37584792_19254.cpp:41:9: note: in expansion of macro 'll'
         ll ans = 0;
         ^
0_0_37584792_19254.cpp:42:30: error: 'N' was not declared in this scope
         for (int i = 0; i <= N; i++)
                              ^
0_0_37584792_19254.cpp:43:13: error: 'ans' was not declared in this scope
             ans = (ans + cnt[i] * i % MOD) % MOD;
             ^
0_0_37584792_19254.cpp:45:15: error: 'ans' was not declared in this scope
         cout<<ans<<endl;
               ^


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 12:27:05, Gzip enabled