Record Detail

Compile Error

prepare (1/3): 
finished

make (2/3): 
g++ -c Hw2.cpp
Hw2.cpp: In function 'int det_sel(int*, int, int, int)':
Hw2.cpp:38:14: error: 'ceil' was not declared in this scope
  int Csize = ceil(sizeof(A) / 5);
              ^~~~
Hw2.cpp:79:24: error: 'floor' was not declared in this scope
  pivot = det_sel(C, 0, floor(n / 5), ceil(n / 10));
                        ^~~~~
Hw2.cpp:79:24: note: suggested alternative: 'float'
  pivot = det_sel(C, 0, floor(n / 5), ceil(n / 10));
                        ^~~~~
                        float
Makefile:7: recipe for target 'main.o' failed
make: *** [main.o] Error 1

build failed

Information

Submit By
Type
Submission
Homework
Project Two: Linear-Time Selection
Language
GNU Make
Submit At
2018-10-22 00:07:37
Judged At
2018-10-22 02:57:18
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes