Record Detail

Runtime Error

/in/lab4.c: In function 'main':
/in/lab4.c:16:86: warning: unused variable 'cc' [-Wunused-variable]
     int i, j = 0, k , p, q, n, m = 0, l, ii = 0, pp, jj = 0, kk = 0, mm = 0, n1 = 0, cc = 0;
                                                                                      ^~
/in/lab4.c:16:70: warning: unused variable 'mm' [-Wunused-variable]
     int i, j = 0, k , p, q, n, m = 0, l, ii = 0, pp, jj = 0, kk = 0, mm = 0, n1 = 0, cc = 0;
                                                                      ^~
/in/lab4.c:16:26: warning: unused variable 'q' [-Wunused-variable]
     int i, j = 0, k , p, q, n, m = 0, l, ii = 0, pp, jj = 0, kk = 0, mm = 0, n1 = 0, cc = 0;
                          ^
/in/lab4.c:15:52: warning: unused variable 'a' [-Wunused-variable]
     char arr1[120], arr3[120], vvs, str[60], *ret, a, v1[120] = {'0'};
                                                    ^
/in/lab4.c:15:47: warning: unused variable 'ret' [-Wunused-variable]
     char arr1[120], arr3[120], vvs, str[60], *ret, a, v1[120] = {'0'};
                                               ^~~
/in/lab4.c:15:37: warning: unused variable 'str' [-Wunused-variable]
     char arr1[120], arr3[120], vvs, str[60], *ret, a, v1[120] = {'0'};
                                     ^~~
/in/lab4.c:15:32: warning: unused variable 'vvs' [-Wunused-variable]
     char arr1[120], arr3[120], vvs, str[60], *ret, a, v1[120] = {'0'};
                                ^~~
/in/lab4.c: In function 'rev':
/in/lab4.c:161:5: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]
     memset(stack,0,120);
     ^~~~~~
/in/lab4.c:162:5: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]
     memset(arr2,0,120);
     ^~~~~~
/in/lab4.c:163:5: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]
     memset(stack1,0,120);
     ^~~~~~
/in/lab4.c:164:5: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]
     memset(helper,0,120);
     ^~~~~~
/in/lab4.c:159:93: warning: variable 'y' set but not used [-Wunused-but-set-variable]
     int top = 0, top1 = 0, i, j = 0,k, l, m = 0, n, p = 0, q = 0, helper[120], z = 0, ii,jj,y=0;
                                                                                             ^
/in/lab4.c:159:80: warning: unused variable 'z' [-Wunused-variable]
     int top = 0, top1 = 0, i, j = 0,k, l, m = 0, n, p = 0, q = 0, helper[120], z = 0, ii,jj,y=0;
                                                                                ^
/in/lab4.c:159:53: warning: unused variable 'p' [-Wunused-variable]
     int top = 0, top1 = 0, i, j = 0,k, l, m = 0, n, p = 0, q = 0, helper[120], z = 0, ii,jj,y=0;
                                                     ^
/in/lab4.c:159:37: warning: unused variable 'k' [-Wunused-variable]
     int top = 0, top1 = 0, i, j = 0,k, l, m = 0, n, p = 0, q = 0, helper[120], z = 0, ii,jj,y=0;
                                     ^
/in/lab4.c:326:28: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized]
             stack1[top1++] = c;
             ~~~~~~~~~~~~~~~^~~
# Status Time Cost Memory Cost
#1 Runtime Error (1) Detail 29ms 7.328 MiB

Information

Submit By
Type
Submission
Homework
Lab 4 (TEST ONLY)
Language
C
Submit At
2021-11-05 18:33:02
Judged At
2021-11-21 14:58:36
Judged By
Score
0
Total Time
29ms
Peak Memory
7.328 MiB