Problem | weddingcoins |
---|---|
User | AltheaZ |
Submission Time | 2023-07-06 13:51:36 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:11:9: error: expected identifier before numeric constant
11 | coins=[1,5,10,50,100,500,1000,5000,10000,50000,100000,500000,5000000];
| ^
weddingcoins.cpp:11:10: error: expected ‘]’ before ‘,’ token
11 | coins=[1,5,10,50,100,500,1000,5000,10000,50000,100000,500000,5000000];
| ^
| ]
weddingcoins.cpp: In lambda function:
weddingcoins.cpp:11:10: error: expected ‘{’ before ‘,’ token
weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:11:10: error: no match for ‘operator=’ (operand types are ‘std::vector<int>’ and ‘main()::<lambda()>’)
In file included from /usr/include/c++/9/vector:72,
from weddingcoins.cpp:2:
/usr/include/c++/9/bits/vector.tcc:198:5: note: candidate: ‘std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _All