// File: kernel.cpp
#include "loop_105.h"

extern "C" void inner_loop_105(struct loop_105_data *data) {
    float *a = data->a;
    int n = data->n;
    double res = 0.0;
    for (int i = 0; i < n; i++) res += (double)a[i];
    data->res = (float)res;
}