I've written a cpp program, and I am able to run it with int32_t main()
but not with the signature int main()
.
Can someone tell me why? Its a .cpp file and not a .c file (as mentioned in some other questions).
The possible explanation could be that one of your #include
files at the top redefines int
as something else. This may happen if somebody tried to change the data type in some algorithm by simply redefining int
.
Try to put #undef int
into a line line immediately before the int main()
to restore the default meaning of "int".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With