fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. bool isNumber(char Symbol)
  6. {
  7. if (Symbol >= '0' && Symbol <= '9')
  8. return true;
  9. else
  10. return false;
  11. }
  12. return 0;
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
2
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:6:1: error: a function-definition is not allowed here before ‘{’ token
 {
 ^
stdout
Standard output is empty