Record Detail

Compile Error

/in/compound.cpp:22:18: error: redefinition of 'const int MAX_ELEM'
 static int const MAX_ELEM = 30;
                  ^~~~~~~~
In file included from /in/compound.cpp:3:0:
/in/compile/compound.h:6:18: note: 'const int MAX_ELEM' previously defined here
 static int const MAX_ELEM = 30;
                  ^~~~~~~~
/in/compound.cpp:23:18: error: redefinition of 'const int MAX_NUM_ELEM'
 static int const MAX_NUM_ELEM = 118; 
                  ^~~~~~~~~~~~
In file included from /in/compound.cpp:3:0:
/in/compile/compound.h:7:18: note: 'const int MAX_NUM_ELEM' previously defined here
 static int const MAX_NUM_ELEM = 118;
                  ^~~~~~~~~~~~
/in/compound.cpp:25:7: error: redefinition of 'class Element'
 class Element{
       ^~~~~~~
In file included from /in/compound.cpp:3:0:
/in/compile/compound.h:9:7: note: previous definition of 'class Element'
 class Element{
       ^~~~~~~
/in/compound.cpp:39:7: error: redefinition of 'class Compound'
 class Compound{
       ^~~~~~~~
In file included from /in/compound.cpp:3:0:
/in/compile/compound.h:23:7: note: previous definition of 'class Compound'
 class Compound{
       ^~~~~~~~
/in/compound.cpp:66:1: error: expected unqualified-id at end of input
 }
 ^

Information

Submit By
Type
Submission
Homework
Final
Language
C++
Submit At
2024-08-08 11:23:39
Judged At
2024-08-13 15:31:32
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes