fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int i=5;
  7. return i<"string";
  8. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:7:11: warning: comparison with string literal results in unspecified behaviour [-Waddress]
  return i<"string";
           ^
prog.cpp:7:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
stdout
Standard output is empty