newspapers.cpp: In function 'int main()':
newspapers.cpp:30:22: error: 'vec' was not declared in this scope
30 | for(int i=1;i<n;i++)vec.push_back(i);
| ^~~
newspapers.cpp:31:6: error: 'vec' was not declared in this scope
31 | if((vec.back()&1)==0)vec.pop_back();
| ^~~
newspapers.cpp:32:10: error: 'vec' was not declared in this scope
32 | if((int)vec.back()&1)vec.push_back(1);
| ^~~
newspapers.cpp:33:22: error: 'vec' was not declared in this scope
33 | for(int i=2;i<n;i++)vec.push_back(i);
| ^~~
newspapers.cpp:34:5: error: 'vec' was not declared in this scope
34 | if(vec.back()&1)vec.pop_back();
| ^~~
newspapers.cpp:36:25: error: 'vec' was not declared in this scope
36 | printf("YES\n%d\n",int(vec.size()));
| ^~~