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_38829533_24124.cpp: In function 'int main()':
0_0_38829533_24124.cpp:14:29: error: 'amp' was not declared in this scope
   14 |         while (scanf("%d", &t) != EOF && t != 0)
      |                             ^~~
0_0_38829533_24124.cpp:14:32: error: expected ')' before ';' token
   14 |         while (scanf("%d", &t) != EOF && t != 0)
      |               ~                ^
      |                                )
0_0_38829533_24124.cpp:14:34: error: expected ';' before ')' token
   14 |         while (scanf("%d", &t) != EOF && t != 0)
      |                                  ^
      |                                  ;
0_0_38829533_24124.cpp:14:49: error: 'amp' was not declared in this scope
   14 |         while (scanf("%d", &t) != EOF && t != 0)
      |                                                 ^~~
0_0_38829533_24124.cpp:14:60: error: expected ';' before ')' token
   14 |         while (scanf("%d", &t) != EOF && t != 0)
      |                                                            ^
      |                                                            ;
0_0_38829533_24124.cpp: In function 'int GoldbachConjecture(int)':
0_0_38829533_24124.cpp:46:34: error: 'amp' was not declared in this scope; did you mean 'tmp'?
   46 |                         right = &primeTable[i - 1];
      |                                  ^~~
      |                                  tmp
0_0_38829533_24124.cpp:50:32: error: 'amp' was not declared in this scope; did you mean 'tmp'?
   50 |         while(*left <= *right && *right >= 2)
      |                                ^~~
      |                                tmp
0_0_38829533_24124.cpp:50:35: error: expected ')' before ';' token
   50 |         while(*left <= *right && *right >= 2)
      |              ~                    ^
      |                                   )
0_0_38829533_24124.cpp:50:37: error: 'amp' was not declared in this scope; did you mean 'tmp'?
   50 |         while(*left <= *right && *right >= 2)
      |                                     ^~~
      |                                     tmp
0_0_38829533_24124.cpp:50:53: error: expected ';' before ')' token
   50 |         while(*left <= *right && *right >= 2)
      |                                                     ^
      |                                                     ;


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-23 00:10:43, Gzip enabled