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_39691720_21699.cpp:16:18: error: missing terminating ' character
   16 |     {if('ch == '-') f = -1;ch = getchar();}
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
0_0_39691720_21699.cpp: In function 'int read()':
0_0_39691720_21699.cpp:17:9: error: expected primary-expression before 'while'
   17 |         while('0'<=ch && ch <= '9'){
      |         ^~~~~
0_0_39691720_21699.cpp:20:9: error: expected primary-expression before 'return'
   20 |         return x*f;
      |         ^~~~~~
0_0_39691720_21699.cpp:19:29: error: expected ')' before 'return'
   19 |             ch = getchar();}
      |                             ^
      |                             )
   20 |         return x*f;
      |         ~~~~~~               
0_0_39691720_21699.cpp:16:8: note: to match this '('
   16 |     {if('ch == '-') f = -1;ch = getchar();}
      |        ^


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 12:38:57, Gzip enabled