Record Detail

Compile Error

/in/main.cpp: In function 'int main(int, char**)':
/in/main.cpp:31:24: error: no matching function for call to 'Clause::addLiteral()'
      clause.addLiteral()  ;
                        ^
In file included from /in/compile/cnf.h:15:0,
                 from /in/compile/solver.h:15,
                 from /in/main.cpp:2:
/in/compile/clause.h:58:10: note: candidate: void Clause::addLiteral(Literal)
     void addLiteral(Literal literal);
          ^~~~~~~~~~
/in/compile/clause.h:58:10: note:   candidate expects 1 argument, 0 provided
/in/clause.cpp: In member function 'void Clause::eliminate(Literal)':
/in/clause.cpp:73:7: error: 'ch' may be used uninitialized in this function [-Werror=maybe-uninitialized]
       if (ch==1){
       ^~
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Project Four: SAT
Language
C++
Submit At
2020-11-25 22:42:22
Judged At
2020-11-25 22:42:22
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes