Problem retrenchment
User YYCMMR5382
Submission Time 2026-06-25 09:51:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

retrenchment.cpp: In function ‘int main()’:
retrenchment.cpp:6:13: error: expected initializer before ‘long’
6 | #define int long long
| ^~~~
retrenchment.cpp:9:2: note: in expansion of macro ‘int’
9 | int X
| ^~~
retrenchment.cpp:16:7: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘<unresolved overloaded function type>’)
16 | cout << div
| ~~~~~^~~~~~
In file included from /usr/include/c++/9/iostream:39,
from retrenchment.cpp:1:
/usr/include/c++/9/ostream:108:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT,