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