Home STD Contest Notification Clarification Problems Ranklist Status Print Sign Out

View Compilation Error

1_728_2925_30714.c:55:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'char'
 inline char getc(){
        ^
1_728_2925_30714.c: In function 'ReadInt':
1_728_2925_30714.c:64:10: error: too few arguments to function 'getc'
  do ch = getc(); while(!isdigit(ch));
          ^
In file included from 1_728_2925_30714.c:1:0:
GCC4.9.2/x86_64-w64-mingw32/include/stdio.h:487:15: note: declared here
   int __cdecl getc(FILE *_File);
               ^
1_728_2925_30714.c:65:29: error: too few arguments to function 'getc'
  do aa = aa*10+ch-'0', ch = getc();
                             ^
In file included from 1_728_2925_30714.c:1:0:
GCC4.9.2/x86_64-w64-mingw32/include/stdio.h:487:15: note: declared here
   int __cdecl getc(FILE *_File);
               ^


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-06-17 07:12:45, Gzip enabled