Problem funnyballs
User YSH2020
Submission Time 2025-12-05 15:43:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

funnyballs.cpp: In function ‘int main()’:
funnyballs.cpp:10:2: error: expected ‘,’ or ‘;’ before ‘long’
10 | long long total=0; for (int i = 0; i < k; i++) total += a[i].first,x[i]=a[i].second;
| ^~~~
funnyballs.cpp:10:49: error: ‘total’ was not declared in this scope
10 | long long total=0; for (int i = 0; i < k; i++) total += a[i].first,x[i]=a[i].second;
| ^~~~~