记录详情

Compile Error

foo.cc: In function 'void Output(int*, int)':
foo.cc:6:8: error: 'ans' was not declared in this scope
  cout<<ans<<endl;
        ^~~
foo.cc:6:8: note: suggested alternative: 'abs'
  cout<<ans<<endl;
        ^~~
        abs
foo.cc: In function 'void yueseph(int, int, int*, int)':
foo.cc:21:11: error: expected ')' before numeric constant
   if(i==n 1)
           ^
foo.cc: In function 'int main()':
foo.cc:33:15: error: too few arguments to function 'void yueseph(int, int, int*, int)'
  yueseph(n,k,a);
               ^
foo.cc:9:6: note: declared here
 void yueseph(int n,int k, int out[],int ans)
      ^~~~~~~
foo.cc:31:16: warning: unused variable 'ans' [-Wunused-variable]
  int n=10, k=7,ans;
                ^~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
自测
题目
2-2 约瑟夫问题
语言
C++
递交时间
2021-03-22 13:58:42
评测时间
2021-03-22 13:58:42
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes