Problem | eatingparallelograms |
---|---|
User | MuhammadJana |
Submission Time | 2025-06-20 14:56:52 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
eatingparallelograms.cpp: In function ‘int main()’:
eatingparallelograms.cpp:6:23: error: expected initializer before numeric constant
6 | float paralelograms 1,2,3
| ^
eatingparallelograms.cpp:9:7: error: no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘const char [8]’)
9 | cin >> "2=2+4=6";
| ~~~ ^~ ~~~~~~~~~
| | |
| | const char [8]
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/9/iostream:40,
from eatingparallelograms.cpp:1:
/usr/include/c++/9/istream:168:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<