Problem GSS
User R9q5P8
Submission Time 2025-11-18 13:13:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

GSS.cpp: In function ‘int main()’:
GSS.cpp:21:2: error: expected ‘,’ or ‘;’ before ‘for’
21 | for (int i = 0; i < costs.size()/4; ++i)
| ^~~
GSS.cpp:21:18: error: ‘i’ was not declared in this scope
21 | for (int i = 0; i < costs.size()/4; ++i)
| ^
GSS.cpp:29:33: error: expected ‘;’ before ‘cout’
29 | sum += *next(costs.begin(), i)
| ^
| ;
30 |
31 | cout << sum;
| ~~~~