Record Detail

Compile Error

/in/simulation.cpp:474:8: error: 'creature' does not name a type; did you mean 'creature_t'?
 static creature * infect_helper (creature_t creat, creature *enemy){
        ^~~~~~~~
        creature_t
/in/simulation.cpp: In function 'void infect(creature_t&, world_t&, bool)':
/in/simulation.cpp:499:25: error: 'infect_helper' was not declared in this scope
                 enemy = infect_helper(creat, enemy);
                         ^~~~~~~~~~~~~
/in/simulation.cpp:507:25: error: 'infect_helper' was not declared in this scope
                 enemy = infect_helper(creat, enemy);
                         ^~~~~~~~~~~~~
/in/simulation.cpp:515:25: error: 'infect_helper' was not declared in this scope
                 enemy = infect_helper(creat, enemy);
                         ^~~~~~~~~~~~~
/in/simulation.cpp:523:25: error: 'infect_helper' was not declared in this scope
                 enemy = infect_helper(creat, enemy);
                         ^~~~~~~~~~~~~

Information

Submit By
Type
Submission
Homework
Project 3
Language
C++
Submit At
2024-11-12 20:04:04
Judged At
2024-11-12 20:04:04
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes