/ Test /

Record Detail

Compile Error

/in/p2.cpp: In function 'int sum(list_t)':
/in/p2.cpp:33:12: error: 'accumulate' was not declared in this scope
     return accumulate(list, add, 0);
            ^~~~~~~~~~
/in/p2.cpp: In function 'int product(list_t)':
/in/p2.cpp:41:12: error: 'accumulate' was not declared in this scope
     return accumulate(list, times, 1);
            ^~~~~~~~~~
/in/p2.cpp: In function 'bool tree_hasPathSum_helper(tree_t, int)':
/in/p2.cpp:228:12: error: 'tree_hasPathSum' was not declared in this scope
     return tree_hasPathSum(tree_left(tree), sum - tree_elt(tree)) || tree_hasPathSum(tree_right(tree), sum - tree_elt(tree));
            ^~~~~~~~~~~~~~~
/in/p2.cpp:228:12: note: suggested alternative: 'tree_hasPathSum_helper'
     return tree_hasPathSum(tree_left(tree), sum - tree_elt(tree)) || tree_hasPathSum(tree_right(tree), sum - tree_elt(tree));
            ^~~~~~~~~~~~~~~
            tree_hasPathSum_helper

Information

Submit By
Type
Submission
Problem
Project Two: Recursion
Language
C++
Submit At
2019-06-01 02:14:56
Judged At
2019-06-01 02:14:56
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes