Record Detail

Compile Error

In file included from /in/bot.cpp:5:0:
/in/bot.h:59:1: error: new types may not be defined in a return type
 enum command{
 ^~~~
/in/bot.h:59:1: note: (perhaps a semicolon is missing after the definition of 'command')
/in/bot.h:71:26: error: two or more data types in declaration of 'deletespace'
 void deletespace(string s);
                          ^
In file included from /in/main.cpp:11:0:
/in/bot.h:59:1: error: new types may not be defined in a return type
 enum command{
 ^~~~
/in/bot.h:59:1: note: (perhaps a semicolon is missing after the definition of 'command')
/in/bot.h:71:26: error: two or more data types in declaration of 'deletespace'
 void deletespace(string s);
                          ^
/in/main.cpp: In function 'int main(int, char**)':
/in/main.cpp:282:13: error: 'deletespace' was not declared in this scope
             deletespace(keyword);
             ^~~~~~~~~~~
/in/main.cpp:282:13: note: suggested alternative: 'deletefirstspace'
             deletespace(keyword);
             ^~~~~~~~~~~
             deletefirstspace

Information

Submit By
Type
Submission
Homework
Project 2: Bot
Language
C++
Submit At
2021-06-28 23:58:44
Judged At
2021-07-17 23:58:38
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes