| Problem | buyingcandy |
|---|---|
| User | ryoshu |
| Submission Time | 2026-11-09 15:20:47 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
buyingcandy.cpp: In function ‘int main()’:
buyingcandy.cpp:10:22: error: expected ‘;’ before ‘<’ token
10 | for (int i = 0, i<n, i++) cin >> p[i];
| ^
| ;
buyingcandy.cpp:10:22: error: expected primary-expression before ‘<’ token
buyingcandy.cpp:10:29: error: expected ‘;’ before ‘)’ token
10 | for (int i = 0, i<n, i++) cin >> p[i];
| ^
| ;
buyingcandy.cpp:13:22: error: expected ‘;’ before ‘<’ token
13 | for (int i = 0, i<m, i++){
| ^
| ;
buyingcandy.cpp:13:22: error: expected primary-expression before ‘<’ token
buyingcandy.cpp:13:29: error: expected ‘;’ before ‘)’ token
13 | for (int i = 0, i<m, i++){
| ^
| ;