Problem weddingcoins
User Kannan
Submission Time 2023-12-30 18:25:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:10:6: error: expected ‘(’ before ‘x’
10 | if x < opti[i]
| ^
| (
weddingcoins.cpp:12:11: error: ‘i’ was not declared in this scope
12 | x-=opti[i];
| ^