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_39481421_6366.cpp:9:8: error: 'ANS' was not declared in this scope
    9 | vector<ANS>v;
      |        ^~~
0_0_39481421_6366.cpp:9:11: error: template argument 1 is invalid
    9 | vector<ANS>v;
      |           ^
0_0_39481421_6366.cpp:9:11: error: template argument 2 is invalid
0_0_39481421_6366.cpp: In function 'int main()':
0_0_39481421_6366.cpp:39:19: error: request for member 'clear' in 'v', which is of non-class type 'int'
   39 |                 v.clear();
      |                   ^~~~~
0_0_39481421_6366.cpp:52:27: error: request for member 'push_back' in 'v', which is of non-class type 'int'
   52 |                         v.push_back(ANS(p[i],d[i]));
      |                           ^~~~~~~~~
0_0_39481421_6366.cpp:54:24: error: request for member 'begin' in 'v', which is of non-class type 'int'
   54 |                 sort(v.begin(),v.end());
      |                        ^~~~~
0_0_39481421_6366.cpp:54:34: error: request for member 'end' in 'v', which is of non-class type 'int'
   54 |                 sort(v.begin(),v.end());
      |                                  ^~~
0_0_39481421_6366.cpp:55:33: error: request for member 'size' in 'v', which is of non-class type 'int'
   55 |                 printf("%d\n",v.size());
      |                                 ^~~~
0_0_39481421_6366.cpp:56:33: error: request for member 'size' in 'v', which is of non-class type 'int'
   56 |                 for(int i=0;i<v.size();i++)
      |                                 ^~~~
0_0_39481421_6366.cpp:57:37: error: invalid types 'int[int]' for array subscript
   57 |                   printf("%d %d\n",v[i].p,v[i].d);
      |                                     ^
0_0_39481421_6366.cpp:57:44: error: invalid types 'int[int]' for array subscript
   57 |                   printf("%d %d\n",v[i].p,v[i].d);
      |                                            ^


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-22 15:59:51, Gzip enabled