Problem goodprogrammer
User Yuzzll
Submission Time 2023-04-17 10:03:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

goodprogrammer.cpp:3:5: error: cannot declare ‘::main’ to be a global variable
3 | int main{
| ^~~~
goodprogrammer.cpp:4:9: error: expected primary-expression before ‘q’
4 | string q;
| ^
goodprogrammer.cpp:4:9: error: expected ‘}’ before ‘q’
goodprogrammer.cpp:3:9: note: to match this ‘{’
3 | int main{
| ^
goodprogrammer.cpp:5:2: error: ‘cin’ does not name a type
5 | cin >> q;
| ^~~
goodprogrammer.cpp:6:2: error: ‘cout’ does not name a type
6 | cout << q << q << q;
| ^~~~
goodprogrammer.cpp:7:1: error: expected declaration before ‘}’ token
7 | }
| ^