fork download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. int main() {
  6. int a;
  7. cin >> a;
  8. vector<int> A(a - 2);
  9. for (int i = 0; i <= A.size(); ++i){
  10. for (int n = 2; n <= a; ++n){
  11. A[i] == n;
  12. }
  13. }
  14.  
  15. for (int i = 0; i <= A.size(); ++i){
  16. cout << A[i] << " ";
  17. }
  18. return 0;
  19. }
Success #stdin #stdout 0.01s 5312KB
stdin
20
stdout
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4113