fork(2) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. double funcshn(double);
  5.  
  6. int main(){
  7. int i = 0;
  8. double x = 0;
  9. double y = 10;
  10. for (i = 0; i < 10; i++){
  11. x = x + funcshn(y);
  12. }
  13. cout << x;
  14. }
  15.  
  16. double funcshn(double &y){
  17. return y+10;
  18. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/home/ew5lNQ/ccUbLYm9.o: In function `main':
prog.cpp:(.text.startup+0x2e): undefined reference to `funcshn(double)'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty