1 2 3 4 5 6 7 8 9 | main() { int *p; p=malloc(sizeof(int)); printf("size of p=%d\n",sizeof(p)); p[500]=999999; printf("p[0]=%d",p[500]); return 0; } |
bWFpbigpCnsKICAgIGludCAqcDsKICAgIHA9bWFsbG9jKHNpemVvZihpbnQpKTsKICAgIHByaW50Zigic2l6ZSBvZiBwPSVkXG4iLHNpemVvZihwKSk7CiAgICBwWzUwMF09OTk5OTk5OwogICAgcHJpbnRmKCJwWzBdPSVkIixwWzUwMF0pOwogICAgcmV0dXJuIDA7Cn0=
prog.c:2: warning: return type defaults to ‘int’ prog.c: In function ‘main’: prog.c:4: warning: implicit declaration of function ‘malloc’ prog.c:4: warning: incompatible implicit declaration of built-in function ‘malloc’ prog.c:5: warning: implicit declaration of function ‘printf’ prog.c:5: warning: incompatible implicit declaration of built-in function ‘printf’
-
upload with new input
-
result: Success time: 0s memory: 1852 kB returned value: 0
size of p=4 p[0]=999999


