Compile Error

/in/p2.cpp: In function 'void list_checkNonEmpty(list_t)':
/in/p2.cpp:15:9: error: 'assert' was not declared in this scope
         assert(0);
         ^~~~~~
/in/p2.cpp:15:9: note: suggested alternative: 'qsort'
         assert(0);
         ^~~~~~
         qsort
/in/p2.cpp: In function 'opaque_list* chop(list_t, unsigned int)':
/in/p2.cpp:209:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (size(list)<n) {
         ~~~~~~~~~~^~
/in/p2.cpp:211:9: error: 'assert' was not declared in this scope
         assert(0);
         ^~~~~~
/in/p2.cpp:211:9: note: suggested alternative: 'qsort'
         assert(0);
         ^~~~~~
         qsort
/in/p2.cpp: In function 'void tree_checkNonEmpty(tree_t)':
/in/p2.cpp:226:9: error: 'assert' was not declared in this scope
         assert(0);
         ^~~~~~
/in/p2.cpp:226:9: note: suggested alternative: 'qsort'
         assert(0);
         ^~~~~~
         qsort
/in/p2.cpp: In function 'bool covered_by(tree_t, tree_t)':
/in/p2.cpp:411:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 { if (depth(A)>depth(B))
   ^~
/in/p2.cpp:413:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
     if (depth(A)==0)
     ^~
/in/p2.cpp: In function 'opaque_tree* insert_tree(int, tree_t)':
/in/p2.cpp:455:7: error: 'assert' was not declared in this scope
       assert(0);
       ^~~~~~
/in/p2.cpp:455:7: note: suggested alternative: 'qsort'
       assert(0);
       ^~~~~~
       qsort

Information

Submit By
Type
Submission
Homework
Project Two: Recursion
Language
C++
Submit At
2019-06-14 22:18:47
Judged At
2019-06-14 22:18:47
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes