Problem paint
User yeezin
Submission Time 2025-06-19 00:13:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

paint.cpp: In function ‘int main()’:
paint.cpp:10:14: error: expected unqualified-id before ‘=’ token
10 | for (int = 0; i < n; i++) cin >> prices[i];
| ^
paint.cpp:10:14: error: expected ‘;’ before ‘=’ token
paint.cpp:10:14: error: expected primary-expression before ‘=’ token
paint.cpp:10:19: error: ‘i’ was not declared in this scope
10 | for (int = 0; i < n; i++) cin >> prices[i];
| ^
paint.cpp:10:24: error: expected ‘)’ before ‘;’ token
10 | for (int = 0; i < n; i++) cin >> prices[i];
| ~ ^
| )
paint.cpp:10:26: error: ‘i’ was not declared in this scope
10 | for (int = 0; i < n; i++) cin >> prices[i];
| ^
paint.cpp:11:14: error: expected unqualified-id before ‘=’ token
11 | for (int = 0; i < n; i++) cin >> p_inc[i];
|