0_0_30027640_20236.cpp:9:27: error: conflicting declaration 'int check [5000100]' int prime[N / 10], check[N], ptot; ^ 0_0_30027640_20236.cpp:8:6: note: previous declaration as 'bool check [5000100]' bool check[N]; ^