fork download
  1. include <bits/stdc++>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int n, s, y=0;
  8. int x, i, j;
  9. cin>>n;
  10. for (i=1;i<=n;i++)
  11. {
  12. x=0; j=0;
  13. while(i != 0)
  14. {
  15. j = i%10;
  16. x = x*10 + j;
  17. i /= 10;
  18. }
  19. cout<<x;
  20. }
  21. return 0;
  22. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:1: error: ‘include’ does not name a type
 include <bits/stdc++>
 ^~~~~~~
prog.cpp: In function ‘int main()’:
prog.cpp:9:5: error: ‘cin’ was not declared in this scope
     cin>>n;
     ^~~
prog.cpp:19:5: error: ‘cout’ was not declared in this scope
     cout<<x;
     ^~~~
stdout
Standard output is empty