Problem goodprogrammer
User wzhci11
Submission Time 2024-02-28 20:52:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

goodprogrammer.cpp:4:5: error: cannot declare ‘::main’ to be a global variable
4 | int main{
| ^~~~
goodprogrammer.cpp:5:18: error: invalid operands of types ‘const char [7]’ and ‘double’ to binary ‘operator*’
5 | cout << "wabbit"*(30e+5);
| ~~~~~~~~^~~~~~~~
| | |
| | double
| const char [7]
goodprogrammer.cpp:5:26: error: expected ‘}’ before ‘;’ token
5 | cout << "wabbit"*(30e+5);
| ^
goodprogrammer.cpp:4:9: note: to match this ‘{’
4 | int main{
| ^
goodprogrammer.cpp:6:2: error: expected unqualified-id before ‘return’
6 | return 0;
| ^~~~~~
goodprogrammer.cpp:7:1: error: expected declaration before ‘}’ token
7 | }
| ^