0_0_14593998_30292.cpp:20:9: error: '_int64' does not name a type
typedef _int64 LL;
^
0_0_14593998_30292.cpp:24:1: error: 'LL' does not name a type
LL per_inver[110];
^
0_0_14593998_30292.cpp:27:1: error: 'LL' does not name a type
LL sum[110];
^
0_0_14593998_30292.cpp:28:1: error: 'LL' does not name a type
LL f[110];
^
0_0_14593998_30292.cpp: In function 'int main()':
0_0_14593998_30292.cpp:51:5: error: 'per_inver' was not declared in this scope
per_inver[0] = 0;
^
0_0_14593998_30292.cpp:53:5: error: 'f' was not declared in this scope
f[0] = 1;
^
0_0_14593998_30292.cpp:58:5: error: 'LL' was not declared in this scope
LL jiechen = 1;
^
0_0_14593998_30292.cpp:60:12: error: expected ';' before 'last'
LL last = per_inver[i - 1];
^
0_0_14593998_30292.cpp:61:9: error: 'jiechen' was not declared in this scope
jiechen *= (i - 1);
^
0_0_14593998_30292.cpp:65:29: error: 'last' was not declared in this scope
per_inver[i] += last;
^
0_0_14593998_30292.cpp:77:9: error: 'sum' was not declared in this scope
sum[0] = 0;
^
0_0_14593998_30292.cpp:80:16: error: expected ';' before 'cur'
LL cur = i - getsum(arr[i]);
^
0_0_14593998_30292.cpp:81:13: error: 'cur' was not declared in this scope
cur %= mod;
^
0_0_14593998_30292.cpp:85:12: error: expected ';' before 'ans'
LL ans = 0;
^
0_0_14593998_30292.cpp:89:20: error: expected ';' before 'pre'
LL pre = sum[i - 1]; //前面固定的逆序对
^
0_0_14593998_30292.cpp:91:24: error: expected ';' before 'cur'
LL cur = 0, u = 0;
^
0_0_14593998_30292.cpp:94:31: error: 'u' was not declared in this scope
++u;
^
0_0_14593998_30292.cpp:99:31: error: 'cur' was not declared in this scope
++cur;
^
0_0_14593998_30292.cpp:112:21: error: 'ans' was not declared in this scope
ans += per_inver[n - i] + (cur + u + v + pre) * f[n - i];
^
0_0_14593998_30292.cpp:112:48: error: 'cur' was not declared in this scope
ans += per_inver[n - i] + (cur + u + v + pre) * f[n - i];
^
0_0_14593998_30292.cpp:112:54: error: 'u' was not declared in this scope
ans += per_inver[n - i] + (cur + u + v + pre) * f[n - i];
^
0_0_14593998_30292.cpp:112:62: error: 'pre' was not declared in this scope
ans += per_inver[n - i] + (cur + u + v + pre) * f[n - i];
^
0_0_14593998_30292.cpp:118:26: error: 'ans' was not declared in this scope
printf("%lld\n", ans-1);
^
|