Problem | round_up_division |
---|---|
User | yuvathi12 |
Submission Time | 2025-06-17 09:58:27 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
round_up_division.cpp: In function ‘int main()’:
round_up_division.cpp:8:17: error: lvalue required as left operand of assignment
8 | if (n / d = 0) {
| ^
round_up_division.cpp:11:26: error: no match for ‘operator=’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘long long int’)
11 | cout = (n / d + 1);
| ^
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from round_up_division.cpp:1:
/usr/include/c++/9/ostream:408:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator=(std::basic_ostream<_CharT, _Traits>&&) [with _CharT = char;