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_38758433_13695.cpp:9:2: error: 'Q' does not name a type
    9 | }Q
      |  ^
0_0_38758433_13695.cpp: In function 'int main()':
0_0_38758433_13695.cpp:12:32: error: 'vs' was not declared in this scope
   12 |         for(ri i=1;i<=1000;++i)vs[i*i]=1;
      |                                ^~
0_0_38758433_13695.cpp:13:13: error: 'T' was not declared in this scope
   13 |         for(T=rd();T--;){
      |             ^
0_0_38758433_13695.cpp:14:17: error: 'n' was not declared in this scope
   14 |                 n=rd();for(ri i=1;i<=n;++i)a[i]=rd()+a[i-1];nw=0;
      |                 ^
0_0_38758433_13695.cpp:14:44: error: 'a' was not declared in this scope
   14 |                 n=rd();for(ri i=1;i<=n;++i)a[i]=rd()+a[i-1];nw=0;
      |                                            ^
0_0_38758433_13695.cpp:14:61: error: 'nw' was not declared in this scope
   14 |                 n=rd();for(ri i=1;i<=n;++i)a[i]=rd()+a[i-1];nw=0;
      |                                                             ^~
0_0_38758433_13695.cpp:15:39: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |                 for(ri i=0;i<=600;++i)ans[i]=0;an=-1e9;
      |                                       ^~~
      |                                       abs
0_0_38758433_13695.cpp:15:48: error: 'an' was not declared in this scope; did you mean 'tan'?
   15 |                 for(ri i=0;i<=600;++i)ans[i]=0;an=-1e9;
      |                                                ^~
      |                                                tan
0_0_38758433_13695.cpp:16:60: error: 'vs' was not declared in this scope
   16 |                 for(ri i=1;i<=n;++i)for(ri j=0;j<i;++j)nw+=vs[a[i]-a[j]];
      |                                                            ^~
0_0_38758433_13695.cpp:16:63: error: 'a' was not declared in this scope
   16 |                 for(ri i=1;i<=n;++i)for(ri j=0;j<i;++j)nw+=vs[a[i]-a[j]];
      |                                                               ^
0_0_38758433_13695.cpp:17:62: error: 'vs' was not declared in this scope
   17 |                 for(ri i=1;i<=n;++i)for(ri k=0;k<=600;++k)if(vs[a[i]+k-300])++ans[k];
      |                                                              ^~
0_0_38758433_13695.cpp:17:65: error: 'a' was not declared in this scope
   17 |                 for(ri i=1;i<=n;++i)for(ri k=0;k<=600;++k)if(vs[a[i]+k-300])++ans[k];
      |                                                                 ^
0_0_38758433_13695.cpp:17:79: error: 'ans' was not declared in this scope; did you mean 'abs'?
   17 |                 for(ri i=1;i<=n;++i)for(ri k=0;k<=600;++k)if(vs[a[i]+k-300])++ans[k];
      |                                                                               ^~~
      |                                                                               abs
0_0_38758433_13695.cpp:19:38: error: 'a' was not declared in this scope
   19 |                         for(ri k=301-a[i];k<=600-a[i];++k)an=max(an,nw-ans[300]+ans[k]);
      |                                      ^
0_0_38758433_13695.cpp:19:72: error: 'ans' was not declared in this scope; did you mean 'abs'?
   19 |                         for(ri k=301-a[i];k<=600-a[i];++k)an=max(an,nw-ans[300]+ans[k]);
      |                                                                        ^~~
      |                                                                        abs
0_0_38758433_13695.cpp:20:69: error: 'a' was not declared in this scope
   20 |                         for(ri j=0;j<i;++j)for(ri k=0;k<=600;++k)if(a[i]-a[j]+k-300>=1&&vs[a[i]-a[j]+k-300])--ans[k];
      |                                                                     ^
0_0_38758433_13695.cpp:20:89: error: 'vs' was not declared in this scope
   20 |                         for(ri j=0;j<i;++j)for(ri k=0;k<=600;++k)if(a[i]-a[j]+k-300>=1&&vs[a[i]-a[j]+k-300])--ans[k];
      |                                                                                         ^~
0_0_38758433_13695.cpp:20:111: error: 'ans' was not declared in this scope; did you mean 'abs'?
   20 |                         for(ri j=0;j<i;++j)for(ri k=0;k<=600;++k)if(a[i]-a[j]+k-300>=1&&vs[a[i]-a[j]+k-300])--ans[k];
      |                                                                                                               ^~~
      |                                                                                                               abs
0_0_38758433_13695.cpp:21:72: error: 'a' was not declared in this scope
   21 |                         for(ri j=i+1;j<=n;++j)for(ri k=0;k<=600;++k)if(a[j]-a[i]+k-300>=1&&vs[a[j]-a[i]+k-300])++ans[k];
      |                                                                        ^
0_0_38758433_13695.cpp:21:92: error: 'vs' was not declared in this scope
   21 |                         for(ri j=i+1;j<=n;++j)for(ri k=0;k<=600;++k)if(a[j]-a[i]+k-300>=1&&vs[a[j]-a[i]+k-300])++ans[k];
      |                                                                                            ^~
0_0_38758433_13695.cpp:21:114: error: 'ans' was not declared in this scope; did you mean 'abs'?
   21 |                         for(ri j=i+1;j<=n;++j)for(ri k=0;k<=600;++k)if(a[j]-a[i]+k-300>=1&&vs[a[j]-a[i]+k-300])++ans[k];
      |                                                                                                                  ^~~
      |                                                                                                                  abs


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-10-01 16:19:52, Gzip enabled