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_37109626_9867.cpp:1:27: error: 'vector' has not been declared
 void Factorization(int n, vector <factor>& ans) {
                           ^
0_0_37109626_9867.cpp:1:34: error: expected ',' or '...' before '<' token
 void Factorization(int n, vector <factor>& ans) {
                                  ^
0_0_37109626_9867.cpp: In function 'void Factorization(int, int)':
0_0_37109626_9867.cpp:2:2: error: 'ans' was not declared in this scope
  ans.clear();
  ^
0_0_37109626_9867.cpp:7:22: error: 'primes' was not declared in this scope
  for(int i = 1; i <= primes[0]; i++) {  // (2)
                      ^
0_0_37109626_9867.cpp:9:4: error: 'factor' was not declared in this scope
    factor f(primes[i], 0);        // (4)
    ^
0_0_37109626_9867.cpp:12:5: error: 'f' was not declared in this scope
     f.count ++;            
     ^
0_0_37109626_9867.cpp:14:18: error: 'f' was not declared in this scope
    ans.push_back(f);              // (6)
                  ^
0_0_37109626_9867.cpp:20:28: error: 'factor' was not declared in this scope
  ans.push_back( factor(n, 1) );        // (7)
                            ^


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.000000(s) query 1, Server time : 2025-02-25 23:04:10, Gzip enabled