Problem sufferingprogrammer
User Usu
Submission Time 2025-06-30 16:55:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sufferingprogrammer.cpp:3:8: error: cannot declare ‘::main’ to be a global variable
3 | signed main {
| ^~~~
sufferingprogrammer.cpp:4:12: error: expected ‘}’ before ‘;’ token
4 | cout << "";
| ^
sufferingprogrammer.cpp:3:13: note: to match this ‘{’
3 | signed main {
| ^
sufferingprogrammer.cpp:4:7: error: invalid user-defined conversion from ‘std::basic_ostream<char>’ to ‘int’ [-fpermissive]
4 | cout << "";
| ~~~~~^~~~~
In file included from /usr/include/c++/9/ios:44,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from sufferingprogrammer.cpp:1:
/usr/include/c++/9/bits/basic_ios.h:117:16: note: candidate is: ‘std::basic_ios<_CharT, _Traits>::operator bool() const [with _CharT = char; _Traits = std::char_traits<char>]’ <near match>
117 | explici