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_32060812_6162.cpp:5:1: error: expected ',' or ';' before 'int'
 int T,n,m,now,a[N],b[N],u[N],vi[N];
 ^
0_0_32060812_6162.cpp: In function 'int main()':
0_0_32060812_6162.cpp:18:7: error: 'vi' was not declared in this scope
   if(!vi[i]) b[++now]=i,u[i]=-1;
       ^
0_0_32060812_6162.cpp:18:14: error: 'b' was not declared in this scope
   if(!vi[i]) b[++now]=i,u[i]=-1;
              ^
0_0_32060812_6162.cpp:18:18: error: 'now' was not declared in this scope
   if(!vi[i]) b[++now]=i,u[i]=-1;
                  ^
0_0_32060812_6162.cpp:18:25: error: 'u' was not declared in this scope
   if(!vi[i]) b[++now]=i,u[i]=-1;
                         ^
0_0_32060812_6162.cpp:19:18: error: 'now' was not declared in this scope
   for(int j=1;j<=now&&b[j]*i<N;j++){
                  ^
0_0_32060812_6162.cpp:19:23: error: 'b' was not declared in this scope
   for(int j=1;j<=now&&b[j]*i<N;j++){
                       ^
0_0_32060812_6162.cpp:20:4: error: 'vi' was not declared in this scope
    vi[i*b[j]]=1;
    ^
0_0_32060812_6162.cpp:22:9: error: 'u' was not declared in this scope
    else u[i*b[j]]=-u[i];
         ^
0_0_32060812_6162.cpp:25:14: error: 'T' was not declared in this scope
  scanf("%d",&T),u[1]=1;
              ^
0_0_32060812_6162.cpp:25:17: error: 'u' was not declared in this scope
  scanf("%d",&T),u[1]=1;
                 ^
0_0_32060812_6162.cpp:27:15: error: 'n' was not declared in this scope
   scanf("%d",&n);
               ^
0_0_32060812_6162.cpp:30:6: error: 'a' was not declared in this scope
    ++a[x],m=max(x,m);
      ^
0_0_32060812_6162.cpp:30:11: error: 'm' was not declared in this scope
    ++a[x],m=max(x,m);
           ^
0_0_32060812_6162.cpp:33:18: error: 'm' was not declared in this scope
   for(int i=1;i<=m;i++){
                  ^
0_0_32060812_6162.cpp:36:21: error: 'a' was not declared in this scope
     if(j%i==0) sum+=a[j];
                     ^
0_0_32060812_6162.cpp:41:18: error: 'm' was not declared in this scope
   for(int i=1;i<=m;i++) a[i]=0;
                  ^
0_0_32060812_6162.cpp:41:25: error: 'a' was not declared in this scope
   for(int i=1;i<=m;i++) a[i]=0;
                         ^


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-11-29 07:48:36, Gzip enabled