Download programs/reduction.c from callensxavier/v10c-dqn-compiler-optimization: direct link, hf CLI and curl.
- Browser
- Download file 248 Bytes
-
https://huggingface.co/callensxavier/v10c-dqn-compiler-optimization/resolve/main/programs/reduction.c
- Command line
-
hf download hf://callensxavier/v10c-dqn-compiler-optimization/programs/reduction.c
-
curl -L -o reduction.c https://huggingface.co/callensxavier/v10c-dqn-compiler-optimization/resolve/main/programs/reduction.c
248 Bytes
| int main() { | |
| int *data=malloc(100000000*sizeof(int)); | |
| for(int i=0;i<100000000;i++)data[i]=i%1000; | |
| int sum=0;for(int i=0;i<100000000;i++)sum+=data[i]; | |
| printf("%d\n",sum);free(data);return 0; | |
| } | |