Problem bestplace
User aqualicious14
Submission Time 2023-03-17 12:09:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bestplace.cpp: In function ‘int main()’:
bestplace.cpp:27:7: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::ostream’ {aka ‘std::basic_ostream<char>’})
27 | cout << cout << ceil(avgx) << " " << ceil(avgy);
| ~~~~ ^~ ~~~~
| | |
| | basic_ostream<[...]>
| basic_ostream<[...]>
bestplace.cpp:27:7: note: candidate: ‘operator<<(int, int)’ <built-in>
27 | cout << cout << ceil(avgx) << " " << ceil(avgy);
| ~~~~~^~~~~~~
bestplace.cpp:27:7: note: no known conversion for argument 2 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘int’
In file included from /usr/include/c++/9/iostream:39,
from bestplace.cpp:1:
/usr/include/c++/9/ostream:108:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std: