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_29222731_18227.cpp: In function 'int createPrimeTable()':
0_0_29222731_18227.cpp:16:2: error: 'nbsp' was not declared in this scope
    int size = 0;
  ^
0_0_29222731_18227.cpp:41:41: error: 'i' was not declared in this scope
        if (is_prime[i])
                                         ^
0_0_29222731_18227.cpp:42:59: error: 'i' was not declared in this scope
            primes[size++] = i;
                                                           ^
0_0_29222731_18227.cpp: In function 'int main()':
0_0_29222731_18227.cpp:51:2: error: 'nbsp' was not declared in this scope
    int count;
  ^
0_0_29222731_18227.cpp:77:53: error: 'i' was not declared in this scope
            if (primes[i] >= a && primes[i + 1] >= b)
                                                     ^
0_0_29222731_18227.cpp:80:68: error: 'i' was not declared in this scope
                if ((primes[i] - a) == (primes[i + 1] - b))
                                                                    ^
0_0_29222731_18227.cpp:83:85: error: 'i' was not declared in this scope
                    prime = primes[i] - a;
                                                                                     ^
0_0_29222731_18227.cpp:84: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-30 05:08:37, Gzip enabled