aoc2024: prepare programming environment
This commit is contained in:
22
userspace/aoc2024/full/main.cpp
Normal file
22
userspace/aoc2024/full/main.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
for (int i = 1; i <= 25; i++)
|
||||
{
|
||||
char command[128];
|
||||
sprintf(command, "/bin/aoc2024/day%d", i);
|
||||
|
||||
struct stat st;
|
||||
if (stat(command, &st) == -1)
|
||||
continue;
|
||||
|
||||
printf("day%d\n", i);
|
||||
|
||||
system(command);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user