0_0_33979242_28019.cpp:1:7: error: 'maxn' was not declared in this scope
int v[maxn], prime[maxn];//v存质数,vis判断是不是质数
^
0_0_33979242_28019.cpp:1:20: error: 'maxn' was not declared in this scope
int v[maxn], prime[maxn];//v存质数,vis判断是不是质数
^
0_0_33979242_28019.cpp:2:9: error: 'maxn' was not declared in this scope
bool mp[maxn];
^
0_0_33979242_28019.cpp: In function 'int primes(int)':
0_0_33979242_28019.cpp:6:7: error: 'v' was not declared in this scope
if (v[i] == 0) {//i是质数
^
0_0_33979242_28019.cpp:7:14: error: 'prime' was not declared in this scope
v[i] = i; prime[++m] = i;
^
0_0_33979242_28019.cpp:10:8: error: 'prime' was not declared in this scope
if (prime[j] > v[i] || prime[j] > n / i)break;
^
0_0_33979242_28019.cpp:10:19: error: 'v' was not declared in this scope
if (prime[j] > v[i] || prime[j] > n / i)break;
^
0_0_33979242_28019.cpp:11:4: error: 'v' was not declared in this scope
v[i*prime[j]] = prime[j];
^
0_0_33979242_28019.cpp:11:8: error: 'prime' was not declared in this scope
v[i*prime[j]] = prime[j];
^
0_0_33979242_28019.cpp: At global scope:
0_0_33979242_28019.cpp:16:9: error: 'maxn' was not declared in this scope
int cun[maxn], a[maxn];
^
0_0_33979242_28019.cpp:16:18: error: 'maxn' was not declared in this scope
int cun[maxn], a[maxn];
^
0_0_33979242_28019.cpp: In function 'int main()':
0_0_33979242_28019.cpp:21:7: error: 'sci' was not declared in this scope
sci(t);
^
0_0_33979242_28019.cpp:26:31: error: 'cun' was not declared in this scope
for (int i = 1; i <= n; i++)cun[i] = 0;
^
0_0_33979242_28019.cpp:28:8: error: 'a' was not declared in this scope
sci(a[i]);
^
0_0_33979242_28019.cpp:31:9: error: 'prime' was not declared in this scope
if (prime[j] == 2&& a[i] % prime[j] == 0) {
^
0_0_33979242_28019.cpp:32:6: error: 'cun' was not declared in this scope
cun[i]++;
^
0_0_33979242_28019.cpp:39:17: error: 'prime' was not declared in this scope
while (a[i]%prime[j]==0)
^
0_0_33979242_28019.cpp:41:6: error: 'cun' was not declared in this scope
cun[i]++;
^
0_0_33979242_28019.cpp:45:18: error: 'cun' was not declared in this scope
if (a[i] != 1)cun[i]++;
^
0_0_33979242_28019.cpp:46:21: error: 'cun' was not declared in this scope
if (i == 1)ans = cun[i];
^
0_0_33979242_28019.cpp:47:16: error: 'cun' was not declared in this scope
else ans ^= cun[i];
^
0_0_33979242_28019.cpp:53:23: error: 'printf' was not declared in this scope
if (ans)printf("W\n");
^
0_0_33979242_28019.cpp:54:20: error: 'printf' was not declared in this scope
else printf("L\n");
^
|