fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x;
  6. cin>>x;
  7. do
  8. {
  9. cout<<x<<;
  10. x--;
  11. }
  12. while(x>=x*(-1));
  13. return 0;
  14. }
Compilation error #stdin compilation error #stdout 0s 15240KB
stdin
10
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:9:12: error: expected primary-expression before ‘;’ token
   cout<<x<<;
            ^
stdout
Standard output is empty