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_39732001_12712.cpp: In function 'long long int read()':
0_0_39732001_12712.cpp:9:26: error: 'amp' was not declared in this scope
    9 |         while (c >= '0' && c <= '9') x = x * 10 + c - '0', c = getchar();
      |                          ^~~
0_0_39732001_12712.cpp:9:29: error: expected ')' before ';' token
    9 |         while (c >= '0' && c <= '9') x = x * 10 + c - '0', c = getchar();
      |               ~             ^
      |                             )
0_0_39732001_12712.cpp:9:31: error: 'amp' was not declared in this scope
    9 |         while (c >= '0' && c <= '9') x = x * 10 + c - '0', c = getchar();
      |                               ^~~
0_0_39732001_12712.cpp:9:44: error: expected ';' before ')' token
    9 |         while (c >= '0' && c <= '9') x = x * 10 + c - '0', c = getchar();
      |                                            ^
      |                                            ;
0_0_39732001_12712.cpp: In function 'int main()':
0_0_39732001_12712.cpp:19:30: error: 'amp' was not declared in this scope
   19 |                 else if (r1 & 1) printf("Yes\nNo\n");
      |                              ^~~


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-15 06:11:03, Gzip enabled