Record Detail

Compile Error

/in/ex1.c: In function 'main':
/in/ex1.c:19:23: error: initialization makes pointer from integer without a cast [-Werror=int-conversion]
         char *arr_i = arr[i1];
                       ^~~
/in/ex1.c:21:27: error: comparison between pointer and integer [-Werror]
             if (arr_i[j1] == ".") {
                           ^~
/in/ex1.c:21:27: error: comparison with string literal results in unspecified behavior [-Werror=address]
/in/ex1.c:15:109: error: unused variable 'z' [-Werror=unused-variable]
     int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;
                                                                                                             ^
/in/ex1.c:15:105: error: unused variable 'y' [-Werror=unused-variable]
     int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;
                                                                                                         ^
/in/ex1.c:15:101: error: unused variable 'x' [-Werror=unused-variable]
     int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;
                                                                                                     ^
/in/ex1.c:15:97: error: unused variable 'w' [-Werror=unused-variable]
     int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;
                                                                                                 ^
/in/ex1.c:15:93: error: unused variable 'v' [-Werror=unused-variable]
     int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;
                                                                                             ^
/in/ex1.c:15:89: error: unused variable 'u' [-Werror=unused-variable]
     int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;
                                                                                         ^
/in/ex1.c:15:85: error: unused variable 't' [-Werror=unused-variable]
     int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;
                                                                                     ^
/in/ex1.c:15:81: error: unused variable 's' [-Werror=unused-variable]
     int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;
                                                                                 ^
/in/ex1.c:15:77: error: unused variable 'r' [-Werror=unused-variable]
     int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;
                                                                             ^
/in/ex1.c:15:73: error: unused variable 'q' [-Werror=unused-variable]
     int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;
                                                                         ^
/in/ex1.c:15:69: error: unused variable 'p' [-Werror=unused-variable]
     int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;
                                                                     ^
/in/ex1.c:15:65: error: unused variable 'o' [-Werror=unused-variable]
     int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;
                                                                 ^
/in/ex1.c:15:61: error: unused variable 'n' [-Werror=unused-variable]
     int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;
                                                             ^
/in/ex1.c:15:57: error: unused variable 'm' [-Werror=unused-variable]
     int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;
                                                         ^
/in/ex1.c:15:53: error: unused variable 'l' [-Werror=unused-variable]
     int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;
                                                     ^
/in/ex1.c:15:49: error: unused variable 'k' [-Werror=unused-variable]
     int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;
                                                 ^
/in/ex1.c:15:45: error: unused variable 'j' [-Werror=unused-variable]
     int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;
                                             ^
/in/ex1.c:15:41: error: unused variable 'i' [-Werror=unused-variable]
     int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;
                                         ^
/in/ex1.c:15:37: error: unused variable 'h' [-Werror=unused-variable]
     int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;
                                     ^
/in/ex1.c:15:33: error: unused variable 'g' [-Werror=unused-variable]
     int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;
                                 ^
/in/ex1.c:15:29: error: unused variable 'f' [-Werror=unused-variable]
     int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;
                             ^
/in/ex1.c:15:25: error: unused variable 'e' [-Werror=unused-variable]
     int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;
                         ^
/in/ex1.c:15:21: error: unused variable 'd' [-Werror=unused-variable]
     int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;
                     ^
/in/ex1.c:15:17: error: unused variable 'c' [-Werror=unused-variable]
     int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;
                 ^
/in/ex1.c:15:13: error: unused variable 'b' [-Werror=unused-variable]
     int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;
             ^
/in/ex1.c:15:9: error: unused variable 'a' [-Werror=unused-variable]
     int a=0,b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;
         ^
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Problem
Mid2 Ex1
Homework
Midterm Exam 2
Language
C
Submit At
2022-07-07 15:39:45
Judged At
2022-07-08 16:05:57
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes