fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int i;
  6. int n = 20;
  7. for(i=0;i<n;n--)
  8. printf("-")
  9. return 0;
  10. }
  11.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:9:2: error: expected ‘;’ before ‘return’
  return 0;
  ^
stdout
Standard output is empty