/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'long long int f(long long int, long long int, long long int)':
/in/foo.cc:7:14: error: expected ',' or ';' before '/' token
  LL mid (l+r)/2 , pf = mid * mid;
              ^
/in/foo.cc:8:10: error: 'pf' was not declared in this scope
  if (x < pf) return f(x,l,mid-1);
          ^~
/in/foo.cc:8:10: note: suggested alternative: 'f'
  if (x < pf) return f(x,l,mid-1);
          ^~
          f
/in/foo.cc:9:10: error: 'pf' was not declared in this scope
  if (x < pf + 2 * mid + 1) return mid;
          ^~
/in/foo.cc:9:10: note: suggested alternative: 'f'
  if (x < pf + 2 * mid + 1) return mid;
          ^~
          f

信息

递交者
类型
递交
题目
P1106 侦探推理
语言
C++
递交时间
2017-10-10 14:16:38
评测时间
2017-10-10 14:16:38
评测机
分数
0
总耗时
1593ms
峰值内存
133.543 MiB