foo.c: In function 'main':
foo.c:5:2: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
scanf("%d",&n);
^~~~~
foo.c:5:2: warning: incompatible implicit declaration of built-in function 'scanf'
foo.c:5:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
foo.c:7:6: warning: implicit declaration of function 'ss' [-Wimplicit-function-declaration]
if(ss(i)&&ss(n-i))
^~
foo.c:8:4: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
printf("%d+%d=%d\n",i,n-i,n);
^~~~~~
foo.c:8:4: warning: incompatible implicit declaration of built-in function 'printf'
foo.c:8:4: note: include '<stdio.h>' or provide a declaration of 'printf'
foo.c:6:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(i=3;i<=n/2;i++)
^~~
foo.c:9:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
return 0;
^~~~~~
foo.c: In function 'ss':
foo.c:16:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(i=2;i<=sqrt(m);i++)
^~~
foo.c:22:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
return b;
^~~~~~
[Hydro](https://hydro.ac)提供评测服务