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