Problem weddingcoins
User yuanbin
Submission Time 2026-11-13 15:56:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:5:25: error: expected identifier before numeric constant
5 | vector<long long> v = [1000000, 500000, 100000, 50000, 10000, 5000, 1000, 500, 100, 50, 10, 5, 1]
| ^~~~~~~
weddingcoins.cpp:5:32: error: expected ‘]’ before ‘,’ token
5 | vector<long long> v = [1000000, 500000, 100000, 50000, 10000, 5000, 1000, 500, 100, 50, 10, 5, 1]
| ^
| ]
weddingcoins.cpp: In lambda function:
weddingcoins.cpp:5:32: error: expected ‘{’ before ‘,’ token
weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:5:32: error: conversion from ‘main()::<lambda()>’ to non-scalar type ‘std::vector<long long int>’ requested
weddingcoins.cpp:5:34: error: expected unqualified-id before numeric constant
5 | vector<long long> v = [1000000, 500000, 100000, 50000, 10000, 5