0_0_21002927_3136.cpp:1:13: error: 'N' was not declared in this scope
int n, m, a[N], b[N], c[N];
^
0_0_21002927_3136.cpp:1:19: error: 'N' was not declared in this scope
int n, m, a[N], b[N], c[N];
^
0_0_21002927_3136.cpp:1:25: error: 'N' was not declared in this scope
int n, m, a[N], b[N], c[N];
^
0_0_21002927_3136.cpp: In function 'int read()':
0_0_21002927_3136.cpp:18:23: error: 'getchar' was not declared in this scope
while(c = getchar(), !isdigit(c));
^
0_0_21002927_3136.cpp:18:36: error: 'isdigit' was not declared in this scope
while(c = getchar(), !isdigit(c));
^
0_0_21002927_3136.cpp:20:23: error: 'getchar' was not declared in this scope
while(c = getchar(), isdigit(c)) x = x * 10 + c - '0';
^
0_0_21002927_3136.cpp:20:35: error: 'isdigit' was not declared in this scope
while(c = getchar(), isdigit(c)) x = x * 10 + c - '0';
^
0_0_21002927_3136.cpp: In function 'int main()':
0_0_21002927_3136.cpp:32:37: error: 'a' was not declared in this scope
for(int i = 1; i <= n; ++i) a[i] = read();
^
0_0_21002927_3136.cpp:34:16: error: 'b' was not declared in this scope
memset(b, 0, sizeof b);
^
0_0_21002927_3136.cpp:34:30: error: 'memset' was not declared in this scope
memset(b, 0, sizeof b);
^
0_0_21002927_3136.cpp:35:16: error: 'c' was not declared in this scope
memset(c, 0, sizeof c);
^
0_0_21002927_3136.cpp:39:39: error: 'a' was not declared in this scope
tmp += i - m - 1 - sum(c, a[i]);
^
0_0_21002927_3136.cpp:46:27: error: 'a' was not declared in this scope
tmp -= sum(c, a[i] - 1);
^
0_0_21002927_3136.cpp:54:31: error: 'min' was not declared in this scope
ans = min(ans, tmp);
^
0_0_21002927_3136.cpp:56:30: error: 'printf' was not declared in this scope
printf("%I64d\n", ans);
^
|