fork(2) download
  1. #include <stdio.h>
  2.  
  3. #define MAX(X, Y) ((X>Y)?(X):(Y))
  4.  
  5. #define A MAX(1,MAX(2,MAX(3,MAX(4,MAX(5,MAX(6,MAX(7,MAX(8,MAX(9,MAX(10, \
  6.   MAX(1,MAX(2,MAX(3,MAX(4,MAX(5,MAX(6,MAX(7,MAX(8,MAX(9,MAX(10, \
  7.   MAX(1,MAX(2,MAX(3,MAX(4,MAX(5,MAX(6,MAX(7,MAX(8,MAX(9,MAX(10, \
  8.   11))))))))))))))))))))))))))))))
  9.  
  10. int main(void) {
  11. // your code goes here
  12. printf("%d\n",A);
  13. return 0;
  14. }
  15.  
Compilation error #stdin compilation error #stdout 0s 2248KB
stdin
Standard input is empty
compilation info
virtual memory exhausted: Cannot allocate memory
stdout
Standard output is empty