Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
133355 李明秦 求解函数 C++ Compile Error 0 MS 0 KB 444 2025-10-18 15:32:16

Tests(0/0):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; double f(double x,double n){ if(n==1){ return x/(1+x); }else{ return x/(n+f(x,n-1)) } } int main(){ double a,b; cin>>a>>b; cout<<<f(a,b); return 0; }


Run Info:

Main.cc: In function 'double f(double, double)':
Main.cc:12:5: error: expected ';' before '}' token
     }
     ^
Main.cc: In function 'int main()':
Main.cc:17:11: error: expected primary-expression before '<' token
     cout<<