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_33979262_142.cpp:2:7: error: 'maxn' was not declared in this scope
 int v[maxn], prime[maxn];//v存质数,vis判断是不是质数
       ^
0_0_33979262_142.cpp:2:20: error: 'maxn' was not declared in this scope
 int v[maxn], prime[maxn];//v存质数,vis判断是不是质数
                    ^
0_0_33979262_142.cpp:3:9: error: 'maxn' was not declared in this scope
 bool mp[maxn];
         ^
0_0_33979262_142.cpp: In function 'int primes(int)':
0_0_33979262_142.cpp:7:7: error: 'v' was not declared in this scope
   if (v[i] == 0) {//i是质数
       ^
0_0_33979262_142.cpp:8:14: error: 'prime' was not declared in this scope
    v[i] = i; prime[++m] = i;
              ^
0_0_33979262_142.cpp:11:8: error: 'prime' was not declared in this scope
    if (prime[j] > v[i] || prime[j] > n / i)break;
        ^
0_0_33979262_142.cpp:11:19: error: 'v' was not declared in this scope
    if (prime[j] > v[i] || prime[j] > n / i)break;
                   ^
0_0_33979262_142.cpp:12:4: error: 'v' was not declared in this scope
    v[i*prime[j]] = prime[j];
    ^
0_0_33979262_142.cpp:12:8: error: 'prime' was not declared in this scope
    v[i*prime[j]] = prime[j];
        ^
0_0_33979262_142.cpp: At global scope:
0_0_33979262_142.cpp:17:9: error: 'maxn' was not declared in this scope
 int cun[maxn], a[maxn];
         ^
0_0_33979262_142.cpp:17:18: error: 'maxn' was not declared in this scope
 int cun[maxn], a[maxn];
                  ^
0_0_33979262_142.cpp: In function 'int main()':
0_0_33979262_142.cpp:22:7: error: 'sci' was not declared in this scope
  sci(t);
       ^
0_0_33979262_142.cpp:27:31: error: 'cun' was not declared in this scope
   for (int i = 1; i <= n; i++)cun[i] = 0;
                               ^
0_0_33979262_142.cpp:29:8: error: 'a' was not declared in this scope
    sci(a[i]);
        ^
0_0_33979262_142.cpp:32:9: error: 'prime' was not declared in this scope
     if (prime[j] == 2&& a[i] % prime[j] == 0) {
         ^
0_0_33979262_142.cpp:33:6: error: 'cun' was not declared in this scope
      cun[i]++;
      ^
0_0_33979262_142.cpp:40:17: error: 'prime' was not declared in this scope
     while (a[i]%prime[j]==0)
                 ^
0_0_33979262_142.cpp:42:6: error: 'cun' was not declared in this scope
      cun[i]++;
      ^
0_0_33979262_142.cpp:46:18: error: 'cun' was not declared in this scope
    if (a[i] != 1)cun[i]++;
                  ^
0_0_33979262_142.cpp:47:21: error: 'cun' was not declared in this scope
    if (i == 1)ans = cun[i];
                     ^
0_0_33979262_142.cpp:48:16: error: 'cun' was not declared in this scope
    else ans ^= cun[i];
                ^


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-12-02 05:16:03, Gzip enabled