Problem oddoneout
User Elliott2011
Submission Time 2024-11-15 10:34:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

oddoneout.cpp: In function ‘int main()’:
oddoneout.cpp:7:1: error: only constructors take member initializers
7 | std::string generate_string() {
| ^~~
oddoneout.cpp:7:13: error: expected ‘(’ before ‘generate_string’
7 | std::string generate_string() {
| ^~~~~~~~~~~~~~~
| (
oddoneout.cpp:7:13: error: expected ‘{’ before ‘generate_string’
7 | std::string generate_string() {
| ^~~~~~~~~~~~~~~
oddoneout.cpp: At global scope:
oddoneout.cpp:7:29: error: ISO C++ forbids declaration of ‘generate_string’ with no type [-fpermissive]
7 | std::string generate_string() {
| ^
oddoneout.cpp:22:1: error: expected declaration before ‘}’ token
22 | }
| ^