Problem | weddingcoins |
---|---|
User | AltheaZ |
Submission Time | 2023-07-06 13:51:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:10:22: error: expected ‘,’ or ‘;’ before ‘=’ token
10 | vector<int>coins(13)=[1,5,10,50,100,500,1000,5000,10000,50000,100000,500000,5000000];
| ^
weddingcoins.cpp:20:6: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘int’)
20 | cout>>amt;
| ~~~~^~~~~
| | |
| | int
| std::ostream {aka std::basic_ostream<char>}
weddingcoins.cpp:20:6: note: candidate: ‘operator>>(int, int)’ <built-in>
20 | cout>>amt;
| ~~~~^~~~~
weddingcoins.cpp:20:6: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘int’
In file included from /usr/include/c++/9/string:56,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++