Problem | area |
---|---|
User | MS |
Submission Time | 2023-08-29 22:44:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
area.cpp: In function ‘int main()’:
area.cpp:5:23: error: no matching function for call to ‘std::basic_istream<char>::getline(unsigned int&)’
5 | std::cin.getline(n);
| ^
In file included from /usr/include/c++/9/iostream:40,
from area.cpp:1:
/usr/include/c++/9/istream:647:5: note: candidate: ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::getline(std::basic_istream<_CharT, _Traits>::char_type*, std::streamsize, std::basic_istream<_CharT, _Traits>::char_type) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::char_type = char; std::streamsize = long int]’
647 | basic_istream<char>::
| ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/istream:647:5: note: candidate expects 3 arguments, 1 provided
/usr/include/c++/9/istream:427:7: note: candidate: ‘std::basic_istream<_CharT, _Traits&