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_21014741_22591.cpp:6:1: error: 'lonng' does not name a type
 lonng long T,n,i,j,m,w[111111];
 ^
0_0_21014741_22591.cpp: In function 'int main()':
0_0_21014741_22591.cpp:15:15: error: 'T' was not declared in this scope
   scanf("%d",&T);
               ^
0_0_21014741_22591.cpp:19:16: error: 'n' was not declared in this scope
    scanf("%d",&n);
                ^
0_0_21014741_22591.cpp:20:9: error: 'i' was not declared in this scope
    for (i=1;i<=n;i++)
         ^
0_0_21014741_22591.cpp:22:17: error: 'w' was not declared in this scope
     scanf("%d",&w[i]);
                 ^
0_0_21014741_22591.cpp:26:8: error: 'i' was not declared in this scope
   for (i=1;i<=n;i++)
        ^
0_0_21014741_22591.cpp:28:8: error: 'w' was not declared in this scope
    if (w[i]<0) t=-1;else t=1;
        ^
0_0_21014741_22591.cpp:29:18: error: 'w' was not declared in this scope
    if (t>0) sum-=w[i];else sum+=w[i];
                  ^
0_0_21014741_22591.cpp:29:33: error: 'w' was not declared in this scope
    if (t>0) sum-=w[i];else sum+=w[i];
                                 ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-18 18:21:50, Gzip enabled