记录详情

Compile Error

foo.cc: In function 'long long int digui(long long int, long long int)':
foo.cc:8:31: error: expected primary-expression before 'long'
  if (k == 0 || k == n) return long long(1);
                               ^~~~
foo.cc:8:31: error: expected ';' before 'long'
foo.cc:8:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if (k == 0 || k == n) return long long(1);
  ^~
foo.cc:8:31: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  if (k == 0 || k == n) return long long(1);
                               ^~~~
foo.cc:8:31: error: expected primary-expression before 'long'
foo.cc:9:2: error: 'else' without a previous 'if'
  else return digui(k, n - 1) + digui(k - 1, n - 1);
  ^~~~
foo.cc: In function 'long long int get(long long int)':
foo.cc:14:29: error: expected primary-expression before 'long'
  for (long long i = 1; i <= long long(sqrt(double(num))); i++) {
                             ^~~~
foo.cc:14:29: error: expected ';' before 'long'
foo.cc:14:29: error: expected primary-expression before 'long'
foo.cc:14:29: error: expected ')' before 'long'
foo.cc:14:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for (long long i = 1; i <= long long(sqrt(double(num))); i++) {
  ^~~
foo.cc:14:59: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  for (long long i = 1; i <= long long(sqrt(double(num))); i++) {
                                                           ^
foo.cc:14:59: error: 'i' was not declared in this scope
foo.cc: In function 'int main()':
foo.cc:33:28: error: expected primary-expression before 'long'
  cout << get(digui(m, n) % long long(pow(10, 9) + 7));
                            ^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1303 G. Mathforces
比赛
南京师范大学2021年11月程序设计竞赛
语言
C++
递交时间
2021-11-21 16:35:05
评测时间
2021-11-21 16:35:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes