hello.c: In function 'main': hello.c:14:9: error: 'num' undeclared (first use in this function) num += i*flag; ^~~ hello.c:14:9: note: each undeclared identifier is reported only once for each function it appears in
没定义num