Problem | change |
---|---|
User | YH |
Submission Time | 2024-03-14 17:21:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
change.cpp: In function ‘int main()’:
change.cpp:10:12: error: uninitialized const ‘change’ [-fpermissive]
10 | const num change[4];
| ^~~~~~
change.cpp:13:6: error: no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘const long long unsigned int’)
13 | cin >> change[0] >> change[1] >> change[2] >> change[3] >> total_amt;
| ~~~ ^~ ~~~~~~~~~
| | |
| | const long long unsigned int
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/9/iostream:40,
from change.cpp:1:
/usr/include/c++/9/istream:120:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__istream_type& (*)(std::basic_istream<_CharT, _Traits&g