fork download
  1. #include <cstdlib>
  2.  
  3. using namespace std;
  4.  
  5. int main(int argc, const char* argv[])
  6. {
  7. atoi(argv[1]) ? "foo" : 'b';
  8. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main(int, const char**)’:
prog.cpp:7:29: error: operands to ?: have different types ‘const char*’ and ‘char’
stdout
Standard output is empty