0_0_19226093_21541.cpp: In function 'void init()':
0_0_19226093_21541.cpp:14:19: error: expected ';' before 'c'
#define N 50007LL c[N], s[N];
^
0_0_19226093_21541.cpp:15:37: note: in expansion of macro 'N'
void init() { for (LL i = 1; i < N; ++i) c[i] = i * (i - 1) >> 1;}inline
^
0_0_19226093_21541.cpp:14:19: error: 'c' was not declared in this scope
#define N 50007LL c[N], s[N];
^
0_0_19226093_21541.cpp:15:37: note: in expansion of macro 'N'
void init() { for (LL i = 1; i < N; ++i) c[i] = i * (i - 1) >> 1;}inline
^
0_0_19226093_21541.cpp:14:21: error: 'N' was not declared in this scope
#define N 50007LL c[N], s[N];
^
0_0_19226093_21541.cpp:15:37: note: in expansion of macro 'N'
void init() { for (LL i = 1; i < N; ++i) c[i] = i * (i - 1) >> 1;}inline
^
0_0_19226093_21541.cpp:14:25: error: 's' was not declared in this scope
#define N 50007LL c[N], s[N];
^
0_0_19226093_21541.cpp:15:37: note: in expansion of macro 'N'
void init() { for (LL i = 1; i < N; ++i) c[i] = i * (i - 1) >> 1;}inline
^
0_0_19226093_21541.cpp:14:29: error: expected ')' before ';' token
#define N 50007LL c[N], s[N];
^
0_0_19226093_21541.cpp:15:37: note: in expansion of macro 'N'
void init() { for (LL i = 1; i < N; ++i) c[i] = i * (i - 1) >> 1;}inline
^
0_0_19226093_21541.cpp:15:42: error: 'i' was not declared in this scope
void init() { for (LL i = 1; i < N; ++i) c[i] = i * (i - 1) >> 1;}inline
^
0_0_19226093_21541.cpp: In function 'int main()':
0_0_19226093_21541.cpp:20:114: error: 's' was not declared in this scope
int n, i; LL sum; bool flag; while (T--) { n = read(); for (i = 0; i < n; ++i) s[i] = read(); sort(s, s + n); sum = 0; flag = true; for (i = 1; i <= n; ++i) { sum = sum + s[i - 1]; if (sum < c[i]) { flag = false; break; } } if (sum != c[n]) flag = false; if (flag) puts("It seems to have no problem."); else puts("The data have been tampered with!"); } return 0;}
^
0_0_19226093_21541.cpp:20:141: error: 's' was not declared in this scope
int n, i; LL sum; bool flag; while (T--) { n = read(); for (i = 0; i < n; ++i) s[i] = read(); sort(s, s + n); sum = 0; flag = true; for (i = 1; i <= n; ++i) { sum = sum + s[i - 1]; if (sum < c[i]) { flag = false; break; } } if (sum != c[n]) flag = false; if (flag) puts("It seems to have no problem."); else puts("The data have been tampered with!"); } return 0;}
^
0_0_19226093_21541.cpp:20:276: error: 'c' was not declared in this scope
int n, i; LL sum; bool flag; while (T--) { n = read(); for (i = 0; i < n; ++i) s[i] = read(); sort(s, s + n); sum = 0; flag = true; for (i = 1; i <= n; ++i) { sum = sum + s[i - 1]; if (sum < c[i]) { flag = false; break; } } if (sum != c[n]) flag = false; if (flag) puts("It seems to have no problem."); else puts("The data have been tampered with!"); } return 0;}
^
0_0_19226093_21541.cpp:20:375: error: 'c' was not declared in this scope
int n, i; LL sum; bool flag; while (T--) { n = read(); for (i = 0; i < n; ++i) s[i] = read(); sort(s, s + n); sum = 0; flag = true; for (i = 1; i <= n; ++i) { sum = sum + s[i - 1]; if (sum < c[i]) { flag = false; break; } } if (sum != c[n]) flag = false; if (flag) puts("It seems to have no problem."); else puts("The data have been tampered with!"); } return 0;}
^
|