Lab 8 part 2 v.07
Warning(s): source_file.c: In function ‘main’:
source_file.c:37:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",x);
^
source_file.c:38:4: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",y);
^
source_file.c:44:17: warning: iteration 5u invokes undefined behavior [-Waggressive-loop-optimizations]
if(C[i]==x[0]){
^
source_file.c:42:9: note: containing loop
for(int i=0;i<=n;i++){
^
a
b
c
e
f
That character isn't in the array
|
|