fork download
  1. bool first_goes_to_left_of(int first, int second) {
  2. if (first %2 == 0) { //if first is even
  3. if (second %2 == 0) //and second is even
  4. return first < second; //sort by increasing order
  5. else //and second is odd
  6. return true; //first goes to left
  7. } else { //if first is odd
  8. if (second %2 == 0) //and second is even
  9. return false; //second goes to left
  10. else //and second is odd
  11. return second < first; //sort by decreasing order
  12. }
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
stdout
Standard output is empty