#include <cstdlib> using namespace std; int main(int argc, const char* argv[]) { atoi(argv[1]) ? "foo" : 'b'; }
Standard input is empty
prog.cpp: In function ‘int main(int, const char**)’: prog.cpp:7:29: error: operands to ?: have different types ‘const char*’ and ‘char’
Standard output is empty