#include <iostream>using namespace std; double funcshn(double); int main(){ int i = 0; double x = 0; double y = 10; for (i = 0; i < 10; i++){ x = x + funcshn(y); } cout << x;} double funcshn(double &y){ return y+10;}
Standard input is empty
/home/ew5lNQ/ccUbLYm9.o: In function `main': prog.cpp:(.text.startup+0x2e): undefined reference to `funcshn(double)' collect2: error: ld returned 1 exit status
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!