Download programs/simple_loop.c from callensxavier/v10c-dqn-compiler-optimization: direct link, hf CLI and curl.
- Browser
- Download file 196 Bytes
-
https://huggingface.co/callensxavier/v10c-dqn-compiler-optimization/resolve/main/programs/simple_loop.c
- Command line
-
hf download hf://callensxavier/v10c-dqn-compiler-optimization/programs/simple_loop.c
-
curl -L -o simple_loop.c https://huggingface.co/callensxavier/v10c-dqn-compiler-optimization/resolve/main/programs/simple_loop.c
196 Bytes
| int main() { | |
| int sum = 0; | |
| for (int i = 0; i < 100000000; i++) { | |
| if (i % 2 == 0) sum += i; | |
| else sum -= i; | |
| } | |
| printf("%d\n", sum); | |
| return 0; | |
| } | |