Error 'a' is not declared in this scope

int n = sizeof(a) /sizeof(int);
whenever I use this statement I received an error ‘a’ is not declared in this scope even I use ( using namespace std;)

How can i solve this…???

hi @shristimalviya77_93a05e326061f1a7, u may not have defined a in that scope
please share the code i’ll help you
go to ide.codingblocks.com
copy past code
save (ctrl + s)
send the url of the page