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_38905585_9136.c:7:9: error: expected specifier-qualifier-list before 'bign'
    7 |         bign(){
      |         ^~~~
0_0_38905585_9136.c:12:1: error: unknown type name 'bign'; use 'struct' keyword to refer to the type
   12 | bign change(char str[])//定义函数,将字符串数组反转 ,逆序存放
      | ^~~~
      | struct 
0_0_38905585_9136.c: In function 'change':
0_0_38905585_9136.c:14:9: error: unknown type name 'bign'; use 'struct' keyword to refer to the type
   14 |         bign a;
      |         ^~~~
      |         struct 
0_0_38905585_9136.c:15:10: error: request for member 'len' in something not a structure or union
   15 |         a.len=strlen(str);
      |          ^
0_0_38905585_9136.c:16:24: error: request for member 'len' in something not a structure or union
   16 |         for(int i=0;i<a.len;i++){
      |                        ^
0_0_38905585_9136.c:17:10: error: request for member 'd' in something not a structure or union
   17 |         a.d[i]=str[a.len-1-i]-'0';
      |          ^
0_0_38905585_9136.c:17:21: error: request for member 'len' in something not a structure or union
   17 |         a.d[i]=str[a.len-1-i]-'0';
      |                     ^
0_0_38905585_9136.c: At top level:
0_0_38905585_9136.c:21:1: error: unknown type name 'bign'; use 'struct' keyword to refer to the type
   21 | bign add(bign a,bign b)
      | ^~~~
      | struct 
0_0_38905585_9136.c:21:10: error: unknown type name 'bign'
   21 | bign add(bign a,bign b)
      |          ^~~~
0_0_38905585_9136.c:21:17: error: unknown type name 'bign'
   21 | bign add(bign a,bign b)
      |                 ^~~~
0_0_38905585_9136.c:37:12: error: unknown type name 'bign'
   37 | void print(bign a)
      |            ^~~~
0_0_38905585_9136.c: In function 'main':
0_0_38905585_9136.c:48:9: error: unknown type name 'bign'; use 'struct' keyword to refer to the type
   48 |         bign a=change(str1);
      |         ^~~~
      |         struct 
0_0_38905585_9136.c:49:9: error: unknown type name 'bign'; use 'struct' keyword to refer to the type
   49 |         bign b=change(str2);
      |         ^~~~
      |         struct 


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-12-02 12:34:36, Gzip enabled