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_39260004_15653.cpp: In function 'int main()':
0_0_39260004_15653.cpp:25:9: error: 'vector' was not declared in this scope
   25 |         vector<stash> sts;
      |         ^~~~~~
0_0_39260004_15653.cpp:3:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
    2 | #include "iomanip"
  +++ |+#include <vector>
    3 | 
0_0_39260004_15653.cpp:25:21: error: expected primary-expression before '>' token
   25 |         vector<stash> sts;
      |                     ^
0_0_39260004_15653.cpp:25:23: error: 'sts' was not declared in this scope; did you mean 'std'?
   25 |         vector<stash> sts;
      |                       ^~~
      |                       std
0_0_39260004_15653.cpp:31:14: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   31 |         std::sort(sts.begin(), sts.end(),[](stash a, stash b){
      |              ^~~~
      |              qsort


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-30 01:52:51, Gzip enabled