fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. long long N;
  6. long long K;
  7. long long q = 100000;
  8. cin >> N;
  9. for(long long i = 1; i < N+1; i++){
  10. K = i;
  11. for(long long j = 1; j < q; j++ )
  12. if(K==0){
  13. cout << i << " ";
  14. j = q;
  15. }
  16. else{
  17. if(K%2==0){
  18. K = K/2;
  19. }
  20. else{
  21. if(K%3==0){
  22. K = K/3;
  23. }
  24. else{
  25. if(K%5==0){
  26. K = K/5;
  27. }
  28. else{
  29. N++;
  30. j = q;
  31. cout<<shdfkgsfdg;
  32. }
  33. }
  34. }
  35. }
  36. }
  37.  
  38.  
  39. return 0;
  40. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
8
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:31:19: error: ‘shdfkgsfdg’ was not declared in this scope
             cout<<shdfkgsfdg;
                   ^~~~~~~~~~
stdout
Standard output is empty