Problem weddingcoins
User Teeskit
Submission Time 2026-01-22 16:38:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:4:12: error: ‘synce_with_stdio’ is not a member of ‘std::ios_base’
4 | ios_base::synce_with_stdio(0); cin.tie(0);
| ^~~~~~~~~~~~~~~~
weddingcoins.cpp:17:11: error: expected ‘(’ before ‘M’
17 | else if M == 5000) {
| ^
| (
weddingcoins.cpp:20:3: error: ‘else’ without a previous ‘if’
20 | else if M == 1000) {
| ^~~~
weddingcoins.cpp:20:11: error: expected ‘(’ before ‘M’
20 | else if M == 1000) {
| ^
| (
weddingcoins.cpp:23:3: error: ‘else’ without a previous ‘if’
23 | else if M == 500) {
| ^~~~
weddingcoins.cpp:23:11: error: expected ‘(’ before ‘M’
23 | else if M == 500) {
| ^
| (
weddingcoins.cpp:26:3: error: ‘else’ without a previous ‘if’
26 | else if M == 100) {
| ^~~~
weddingcoins.