Problem | summarising2023 |
---|---|
User | Duk168 |
Submission Time | 2024-01-01 00:06:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
summarising2023.cpp:4:5: error: cannot declare ‘::main’ to be a global variable
4 | int main{
| ^~~~
summarising2023.cpp:5:23: error: expected ‘}’ before ‘;’ token
5 | cout << "I love 2023";
| ^
summarising2023.cpp:4:9: note: to match this ‘{’
4 | int main{
| ^
summarising2023.cpp:5:7: error: invalid user-defined conversion from ‘std::basic_ostream<char>’ to ‘int’ [-fpermissive]
5 | cout << "I love 2023";
| ~~~~~^~~~~~~~~~~~~~~~
In file included from /usr/include/c++/9/ios:44,
from /usr/include/c++/9/istream:38,
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 summarising2023.cpp:1:
/usr/include/c++/9/bits/basic_io