cybersecurity · beginner · ~15 min · safe pentest lab

Total evidence size

Sum a list of sizes.

Challenge

Implement long total_size(const int *sizes, int n) returning the sum of n file sizes.

Starter code

long total_size(const int *sizes, int n) {
    /* TODO */
    return 0;
}

Solve this exercise in the browser editor — compile and run against the test harness, no setup required.