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;
^
|