0_0_19866425_16062.cpp:4:14: error: declaration does not declare anything [-fpermissive]
typedef long long;
^
0_0_19866425_16062.cpp:6:1: error: 'll' does not name a type
ll a[N], b[N], c[N];
^
0_0_19866425_16062.cpp: In function 'int main(int, const char**)':
0_0_19866425_16062.cpp:29:10: error: 'b' was not declared in this scope
memset(b, 0 ,sizeof(b));
^
0_0_19866425_16062.cpp:30:10: error: 'c' was not declared in this scope
memset(c, 0, sizeof(c));
^
0_0_19866425_16062.cpp:33:3: error: 'll' was not declared in this scope
ll cur = 0;
^
0_0_19866425_16062.cpp:35:16: error: 'a' was not declared in this scope
scanf("%d", a+i);
^
0_0_19866425_16062.cpp:38:14: error: 'a' was not declared in this scope
update(b, a[i], 1);
^
0_0_19866425_16062.cpp:39:4: error: 'cur' was not declared in this scope
cur += i - m - sum(b, a[i]);
^
0_0_19866425_16062.cpp:42:6: error: expected ';' before 'ans'
ll ans = cur;
^
0_0_19866425_16062.cpp:44:4: error: 'cur' was not declared in this scope
cur += sum(b, a[i-m]-1);
^
0_0_19866425_16062.cpp:44:18: error: 'a' was not declared in this scope
cur += sum(b, a[i-m]-1);
^
0_0_19866425_16062.cpp:46:20: error: 'add' was not declared in this scope
add(c, a[i-m], 1);
^
0_0_19866425_16062.cpp:50:4: error: 'ans' was not declared in this scope
ans = min(ans, cur);
^
0_0_19866425_16062.cpp:52:20: error: 'ans' was not declared in this scope
printf("%lld\n", ans);
^
|