fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your codnum = 1;
  6. num=1
  7. while ( num < 10)
  8.  
  9. {
  10. cout<< num << " ";
  11.  
  12. }
  13. return 0;
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:6:1: error: 'num' was not declared in this scope
 num=1
 ^
stdout
Standard output is empty