206572026-01-08 13:52:54tenyeszbikaZenehallgatáscpp17Compilation error
#include <iostream>
#include <vector>

using namespace std;

int n, k, j, i,, t, s;

vector <int> v;

int main()
{
	ios::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	cin >> n >> k;
	for (i = 1; i <= n; ++i)
	{
		cin >> t;
		for (j = 1; j <= t; ++j)
			v.push_back(i);
		s = s + t;
	}
	for (i = 1; i <= k; ++i)
	{
		cin >> t;
		cout << v[t % s - 1];
	}

}


Compilation error
open /var/local/lib/isolate/440/box/a.out: no such file or directory
main.cpp:6:16: error: expected unqualified-id before ',' token
    6 | int n, k, j, i,, t, s;
      |                ^