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


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-06-27 03:08:20, Gzip enabled