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_39568691_3542.cpp: In function 'int main()':
0_0_39568691_3542.cpp:13:9: error: 'vector' was not declared in this scope
   13 |         vector<int> cycle;
      |         ^~~~~~
0_0_39568691_3542.cpp:2:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
    1 | #include<iostream>
  +++ |+#include <vector>
    2 | using namespace std;
0_0_39568691_3542.cpp:13:16: error: expected primary-expression before 'int'
   13 |         vector<int> cycle;
      |                ^~~
0_0_39568691_3542.cpp:19:13: error: 'cycle' was not declared in this scope
   19 |             cycle.push_back(fn);
      |             ^~~~~
0_0_39568691_3542.cpp:25:17: error: 'cycle' was not declared in this scope
   25 |         cout << cycle[index] << endl;
      |                 ^~~~~


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 19:48:39, Gzip enabled