Record Detail

Compile Error

/in/p2.cpp: In function 'bool isArithmeticSequence(list_t)':
/in/p2.cpp:62:16: error: 'isArithmeticSequenceHelper' was not declared in this scope
         return isArithmeticSequenceHelper(list, diff);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/in/p2.cpp:62:16: note: suggested alternative: 'isArithmeticSequence'
         return isArithmeticSequenceHelper(list, diff);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~
                isArithmeticSequence
/in/p2.cpp: In function 'opaque_list* traversal(tree_t)':
/in/p2.cpp:178:82: error: no matching function for call to 'list_make(int)'
         return append(append(traversal(tree_left(tree)), list_make(tree_elt(tree))), traversal(tree_right(tree)));
                                                                                  ^
In file included from /in/p2.h:4:0,
                 from /in/p2.cpp:1:
/in/driver/recursive.h:37:8: note: candidate: opaque_list* list_make()
 list_t list_make();
        ^~~~~~~~~
/in/driver/recursive.h:37:8: note:   candidate expects 0 arguments, 1 provided
/in/driver/recursive.h:40:8: note: candidate: opaque_list* list_make(int, list_t)
 list_t list_make(int elt, list_t list);
        ^~~~~~~~~
/in/driver/recursive.h:40:8: note:   candidate expects 2 arguments, 1 provided
/in/p2.cpp: In function 'bool tree_hasMonotonicPath(tree_t)':
/in/p2.cpp:189:16: error: 'tree_hasMonotonicPathHelper' was not declared in this scope
         return tree_hasMonotonicPathHelper(tree, tree_elt(tree), true) || tree_hasMonotonicPathHelper(tree, tree_elt(tree), false);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/p2.cpp:189:16: note: suggested alternative: 'tree_hasMonotonicPath'
         return tree_hasMonotonicPathHelper(tree, tree_elt(tree), true) || tree_hasMonotonicPathHelper(tree, tree_elt(tree), false);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                tree_hasMonotonicPath

Information

Submit By
Type
Submission
Homework
Project 2
Language
C++
Submit At
2024-10-30 19:43:22
Judged At
2024-10-30 19:43:22
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes