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_36617313_20990.cpp:3:9: error: 'pair' does not name a type
 typedef pair<int, int> P;
         ^
0_0_36617313_20990.cpp:5:26: error: 'sqrt' was not declared in this scope
 const int maxn = sqrt(1e7) + 1;
                          ^
0_0_36617313_20990.cpp:7:1: error: 'vector' does not name a type
 vector<int> primes;
 ^
0_0_36617313_20990.cpp:8:1: error: 'bitset' does not name a type
 bitset<10005> not_prime;
 ^
0_0_36617313_20990.cpp: In function 'void oula(int)':
0_0_36617313_20990.cpp:12:14: error: 'not_prime' was not declared in this scope
         if (!not_prime[i]){
              ^
0_0_36617313_20990.cpp:13:13: error: 'primes' was not declared in this scope
             primes.push_back(i);
             ^
0_0_36617313_20990.cpp:15:29: error: 'primes' was not declared in this scope
         for (int j = 0; j < primes.size() && i * primes[j] <= x; j++){
                             ^
0_0_36617313_20990.cpp:16:13: error: 'not_prime' was not declared in this scope
             not_prime[primes[j] * i] = 1;
             ^
0_0_36617313_20990.cpp: In function 'void solve()':
0_0_36617313_20990.cpp:24:12: error: 'cin' was not declared in this scope
     int n; cin >> n;
            ^
0_0_36617313_20990.cpp:25:5: error: 'vector' was not declared in this scope
     vector<int> s(n);
     ^
0_0_36617313_20990.cpp:25:12: error: expected primary-expression before 'int'
     vector<int> s(n);
            ^
0_0_36617313_20990.cpp:27:9: error: 'i' was not declared in this scope
     iep(i, n){
         ^
0_0_36617313_20990.cpp:27:13: error: 'iep' was not declared in this scope
     iep(i, n){
             ^
0_0_36617313_20990.cpp:42:19: error: 'cout' was not declared in this scope
     if (ans != 0) cout << "Alice" << endl;
                   ^
0_0_36617313_20990.cpp:42:38: error: 'endl' was not declared in this scope
     if (ans != 0) cout << "Alice" << endl;
                                      ^
0_0_36617313_20990.cpp:43:10: error: 'cout' was not declared in this scope
     else cout << "Bob" << endl;
          ^
0_0_36617313_20990.cpp:43:27: error: 'endl' was not declared in this scope
     else cout << "Bob" << endl;
                           ^
0_0_36617313_20990.cpp: In function 'int main()':
0_0_36617313_20990.cpp:48:5: error: '_fast_' was not declared in this scope
     _fast_;
     ^
0_0_36617313_20990.cpp:50:12: error: 'cin' was not declared in this scope
     int t; cin >> t; while (t--)
            ^


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-10-05 19:39:06, Gzip enabled