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_38634671_32706.cpp:7:1: error: 'vector' does not name a type; did you mean 'perror'?
 vector<int> p;
 ^~~~~~
 perror
0_0_38634671_32706.cpp: In function 'void get_primes()':
0_0_38634671_32706.cpp:16:10: error: 'p' was not declared in this scope
          p.push_back(i);
          ^
0_0_38634671_32706.cpp:19:21: error: 'p' was not declared in this scope
         for(int j=0;p[j]*i<=1000010;j++)
                     ^


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-29 19:02:59, Gzip enabled