0_0_25464101_11209.cpp: In function 'int main()':
0_0_25464101_11209.cpp:15:5: error: 'int64' was not declared in this scope
*/int64 n;
^
0_0_25464101_11209.cpp:18:22: error: 'scanf' was not declared in this scope
while (scanf("%d", &t) != EOF)
^
0_0_25464101_11209.cpp:18:27: error: 'EOF' was not declared in this scope
while (scanf("%d", &t) != EOF)
^
0_0_25464101_11209.cpp:20:17: error: 'n' was not declared in this scope
scanf("%lld", &n);
^
0_0_25464101_11209.cpp:22:8: error: expected ';' before 'sum2'
int64 sum2 = 0, sum3 = 0;
^
0_0_25464101_11209.cpp:24:3: error: 'sum2' was not declared in this scope
sum2 += da[i] * i;
^
0_0_25464101_11209.cpp:25:3: error: 'sum3' was not declared in this scope
sum3 += da[i];
^
0_0_25464101_11209.cpp:27:2: error: 'sum2' was not declared in this scope
sum2 -= 1;
^
0_0_25464101_11209.cpp:28:29: error: 'sum3' was not declared in this scope
printf("%lld\n", (n - 1) * sum3 - sum2);
^
0_0_25464101_11209.cpp:28:40: error: 'printf' was not declared in this scope
printf("%lld\n", (n - 1) * sum3 - sum2);
^
|