F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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);
                                        ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-17 02:31:07, Gzip enabled