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_29222695_294.cpp: In function 'int createPrimeTable()':
0_0_29222695_294.cpp:17:2: error: 'nbsp' was not declared in this scope
    int size = 0;
  ^
0_0_29222695_294.cpp:42:41: error: 'i' was not declared in this scope
        if (is_prime[i])
                                         ^
0_0_29222695_294.cpp:43:59: error: 'i' was not declared in this scope
            primes[size++] = i;
                                                           ^
0_0_29222695_294.cpp: In function 'int main()':
0_0_29222695_294.cpp:52:2: error: 'nbsp' was not declared in this scope
    int count;
  ^
0_0_29222695_294.cpp:78:53: error: 'i' was not declared in this scope
            if (primes[i] >= a && primes[i + 1] >= b)
                                                     ^
0_0_29222695_294.cpp:81:68: error: 'i' was not declared in this scope
                if ((primes[i] - a) == (primes[i + 1] - b))
                                                                    ^
0_0_29222695_294.cpp:84:85: error: 'i' was not declared in this scope
                    prime = primes[i] - a;
                                                                                     ^
0_0_29222695_294.cpp:85:70: error: break statement not within loop or switch
                    break;
                                                                      ^


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-26 18:41:47, Gzip enabled