prog.cpp: In function ‘int main()’:
prog.cpp:8:8: error: ‘w’ was not declared in this scope
cin>>w;
^
prog.cpp:12:3: error: expected ‘;’ before ‘}’ token
}
^
prog.cpp:14:3: error: expected ‘,’ or ‘;’ before ‘int’
int c = w;
^~~
prog.cpp:15:9: error: ‘c’ was not declared in this scope
while(c--){
^