fork download
  1. #include <stdio.h>
  2.  
  3. void func(bool flag)
  4. {
  5. for (int i = 0; i < 1000; i++)
  6. {
  7. if (flag)
  8. {
  9. //do something
  10. }
  11. else
  12. {
  13. //do something else
  14. }
  15. }
  16. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:3:11: error: unknown type name ‘bool’
 void func(bool flag)
           ^~~~
stdout
Standard output is empty