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_17783225_16281.cpp:13:7: error: expected nested-name-specifier before 'namespacestd'
 using namespacestd;
       ^
0_0_17783225_16281.cpp:16:9: error: 'longlong' does not name a type
 typedef longlong LL;
         ^
0_0_17783225_16281.cpp:21:1: error: 'vector' does not name a type
 vector<int> fac[N];
 ^
0_0_17783225_16281.cpp:22:1: error: 'LL' does not name a type
 LL f[N];
 ^
0_0_17783225_16281.cpp: In function 'void Mobius()':
0_0_17783225_16281.cpp:48:13: error: 'fac' was not declared in this scope
             fac[j].push_back(i);
             ^
0_0_17783225_16281.cpp: At global scope:
0_0_17783225_16281.cpp:53:8: error: 'LL' does not name a type
 inline LL sum(int p){
        ^
0_0_17783225_16281.cpp: In function 'void add(int, int)':
0_0_17783225_16281.cpp:64:9: error: 'f' was not declared in this scope
         f[p] += v;
         ^
0_0_17783225_16281.cpp: In function 'void update(int, int, int)':
0_0_17783225_16281.cpp:73:23: error: 'fac' was not declared in this scope
     for(int i =0 ;i < fac[n].size() ; i++){
                       ^
0_0_17783225_16281.cpp: At global scope:
0_0_17783225_16281.cpp:79:1: error: 'LL' does not name a type
 LL query(int p)
 ^
0_0_17783225_16281.cpp: In function 'int main()':
0_0_17783225_16281.cpp:95:13: error: 'f' was not declared in this scope
         CLR(f,0);
             ^
0_0_17783225_16281.cpp:15:25: note: in definition of macro 'CLR'
 #define CLR(a,b) memset(a,b,sizeof(a))
                         ^
0_0_17783225_16281.cpp:108:41: error: 'query' was not declared in this scope
                 printf("%I64d\n",query(x));
                                         ^


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-22 15:47:01, Gzip enabled