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_22500815_2431.cpp: In function 'void add(int, int)':
0_0_22500815_2431.cpp:34:26: error: 'void add(int, int)' redeclared as different kind of symbol
 void add(int pos, int num){
                          ^
0_0_22500815_2431.cpp:16:5: note: previous declaration 'int add [200010]'
 int add[N];
     ^
0_0_22500815_2431.cpp: In function 'void init()':
0_0_22500815_2431.cpp:86:15: error: 'j' was not declared in this scope
   if(!vis[i * j]) continue;
               ^
0_0_22500815_2431.cpp: In function 'void step2()':
0_0_22500815_2431.cpp:135:19: error: 'add' cannot be used as a function
    add(L[r] + 1, 1);
                   ^
0_0_22500815_2431.cpp:137:22: error: 'add' cannot be used as a function
     add(L[it] + 1, -1);
                      ^
0_0_22500815_2431.cpp:138:18: error: 'add' cannot be used as a function
     add(it + 1, 1);
                  ^


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 11:30:05, Gzip enabled