0_0_36442675_19885.cpp:1:1: error: 'll' does not name a type
ll pri[maxn],pri_num;
^
0_0_36442675_19885.cpp:2:1: error: 'll' does not name a type
ll mu[maxn];//莫比乌斯函数值
^
0_0_36442675_19885.cpp:3:10: error: 'maxn' was not declared in this scope
bool vis[maxn];
^
0_0_36442675_19885.cpp: In function 'void mobius()':
0_0_36442675_19885.cpp:6:5: error: 'pri_num' was not declared in this scope
pri_num = 0;//素数个数
^
0_0_36442675_19885.cpp:7:12: error: 'vis' was not declared in this scope
memset(vis, false, sizeof(vis));
^
0_0_36442675_19885.cpp:7:35: error: 'memset' was not declared in this scope
memset(vis, false, sizeof(vis));
^
0_0_36442675_19885.cpp:9:5: error: 'mu' was not declared in this scope
mu[1] = 1;
^
0_0_36442675_19885.cpp:10:23: error: 'maxn' was not declared in this scope
for(int i = 2; i <maxn; i++){
^
0_0_36442675_19885.cpp:12:13: error: 'pri' was not declared in this scope
pri[pri_num++] = i;
^
0_0_36442675_19885.cpp:15:37: error: 'pri' was not declared in this scope
for(int j=0; j<pri_num && i*pri[j]<maxn ; j++){
^
0_0_36442675_19885.cpp: At global scope:
0_0_36442675_19885.cpp:22:7: error: 'maxn' was not declared in this scope
int a[maxn];
^
0_0_36442675_19885.cpp:23:1: error: 'll' does not name a type
ll num[maxn], have[maxn];
^
0_0_36442675_19885.cpp: In function 'void solve()':
0_0_36442675_19885.cpp:26:5: error: 'll' was not declared in this scope
ll n; scanf("%lld", &n);
^
0_0_36442675_19885.cpp:26:27: error: 'n' was not declared in this scope
ll n; scanf("%lld", &n);
^
0_0_36442675_19885.cpp:26:28: error: 'scanf' was not declared in this scope
ll n; scanf("%lld", &n);
^
0_0_36442675_19885.cpp:27:12: error: 'vis' was not declared in this scope
memset(vis, 0, sizeof(vis));
^
0_0_36442675_19885.cpp:27:31: error: 'memset' was not declared in this scope
memset(vis, 0, sizeof(vis));
^
0_0_36442675_19885.cpp:28:12: error: 'a' was not declared in this scope
memset(a, 0, sizeof(a));
^
0_0_36442675_19885.cpp:29:12: error: 'have' was not declared in this scope
memset(have, 0, sizeof(have));
^
0_0_36442675_19885.cpp:30:12: error: 'num' was not declared in this scope
memset(num, 0, sizeof(num));
^
0_0_36442675_19885.cpp:35:28: error: 'max' was not declared in this scope
maxx=max(maxx, a[i]);
^
0_0_36442675_19885.cpp:41:24: error: 'mu' was not declared in this scope
have[j] += mu[i]*num[i];
^
0_0_36442675_19885.cpp:44:8: error: expected ';' before 'ans'
ll ans=0;
^
0_0_36442675_19885.cpp:47:13: error: 'ans' was not declared in this scope
ans += have[a[i]]*(n-1-have[a[i]]);
^
0_0_36442675_19885.cpp:50:5: error: 'ans' was not declared in this scope
ans = n*(n-1)*(n-2)/6 - ans/2;
^
0_0_36442675_19885.cpp:51:25: error: 'printf' was not declared in this scope
printf("%lld\n", ans);
^
0_0_36442675_19885.cpp: In function 'int main()':
0_0_36442675_19885.cpp:56:19: error: 'scanf' was not declared in this scope
scanf("%d", &t);
^
|