Main.cc: In function ‘bool yc(int)’:
Main.cc:7:14: error: ‘cnt’ was not declared in this scope
if(x%i==0) cnt+=i;
^~~
Main.cc:7:14: note: suggested alternative: ‘cut’
if(x%i==0) cnt+=i;
^~~
cut
Main.cc:9:5: error: ‘cnt’ was not declared in this scope
if(cnt==x) flag=1;
^~~
Main.cc:9:5: note: suggested alternative: ‘cut’
if(cnt==x) flag=1;
^~~
cut
Main.cc:4:6: warning: unused variable ‘cut’ [-Wunused-variable]
int cut=0;
^~~