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)提供评测服务