Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Lab 8 part 2 v.07

Language: Layout:
+ ] Compiler args - ] Show input
Compilation time: 0.12 sec, absolute running time: 0.14 sec, cpu time: 0 sec, memory peak: 3 Mb, absolute service time: 0,35 sec 
edit mode |  history  | discussion
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