0_0_24547281_31171.cpp: In function 'int main()': 0_0_24547281_31171.cpp:99:50: error: 'flag' was not declared in this scope if(in_d[i]==1)counts++,p*=num[i]==1?1:(num[i]-flag[i]); ^