fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3. #define VERSION "101"
  4. // This function is not available for linking
  5. int unknown_function();
  6. // This one is in standard library
  7. int rand();
  8. int main(void) {
  9. int x;
  10. if (strlen(VERSION) > 3 || (strlen(VERSION) == 3 && strcmp(VERSION, "100") > 0)) {
  11. // code if VERSION is at least "101"
  12. x = rand();
  13. } else {
  14. // code if VERSION is "100" or less
  15. x = unknown_function();
  16. }
  17. printf("%d\n", x);
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
1804289383