Problem | cokemoresugar |
---|---|
User | wzhci11 |
Submission Time | 2024-12-11 10:41:50 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
cokemoresugar.cpp: In function ‘int32_t main()’:
cokemoresugar.cpp:100:5: error: expected initializer before ‘cin’
100 | cin >> n >> q;
| ^~~
cokemoresugar.cpp:103:37: error: ‘a’ was not declared in this scope
103 | for (int i=1; i<=n; i++) cin >> a[i].first;
| ^
cokemoresugar.cpp:104:37: error: ‘a’ was not declared in this scope
104 | for (int i=1; i<=n; i++) cin >> a[i].second;
| ^
cokemoresugar.cpp:107:46: error: ‘a’ was not declared in this scope
107 | for (int i=1; i<=n; i++) b[i] = b[i-1] + a[i].first*a[i].second;
| ^