/ TYWZ /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:16:35: error: 'lo' was not declared in this scope
    for(int j=i+1;j<=n;j++)  k=k+1,lo[k]=abs(x[j]-x[i]);
                                   ^~
/in/foo.cc:16:35: note: suggested alternative: 'l'
    for(int j=i+1;j<=n;j++)  k=k+1,lo[k]=abs(x[j]-x[i]);
                                   ^~
                                   l
/in/foo.cc:17:6: error: 'loli' was not declared in this scope
   if(loli(n))
      ^~~~
/in/foo.cc:17:6: note: suggested alternative: 'logl'
   if(loli(n))
      ^~~~
      logl
/in/foo.cc:19:9: error: 'lo' was not declared in this scope
    sort(lo+1,lo+k+1);
         ^~
/in/foo.cc:19:9: note: suggested alternative: 'l'
    sort(lo+1,lo+k+1);
         ^~
         l
/in/foo.cc:22:7: error: 'loli' was not declared in this scope
   if(!loli(n))
       ^~~~
/in/foo.cc:22:7: note: suggested alternative: 'logl'
   if(!loli(n))
       ^~~~
       logl
/in/foo.cc:24:9: error: 'lo' was not declared in this scope
    sort(lo+1,lo+k+1);
         ^~
/in/foo.cc:24:9: note: suggested alternative: 'l'
    sort(lo+1,lo+k+1);
         ^~
         l

信息

递交者
类型
递交
题目
17.10.6 Prob I - Median
比赛
2017.10.6 TYWZ NOIp提高组模拟练习
语言
C++
递交时间
2017-10-06 11:39:47
评测时间
2017-10-06 11:39:47
评测机
分数
0
总耗时
423ms
峰值内存
37.059 MiB