Problem weddingcoins
User hwy
Submission Time 2023-06-07 00:35:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:9:2: error: expected ‘,’ or ‘;’ before ‘int’
9 | int temp;
| ^~~
weddingcoins.cpp:12:3: error: ‘temp’ was not declared in this scope
12 | temp = upper_bound(coins.begin(), coins.end(), N) - coins.begin() - 1;
| ^~~~