Record Detail

Runtime Error

/in/lab4.c: In function 'findnum':
/in/lab4.c:37:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<strlen(arr);++i)
                  ^
/in/lab4.c: In function 'allnum':
/in/lab4.c:75:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<strlen(arr);++i){
                  ^
/in/lab4.c:79:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if(i!=0&&i!=strlen(arr)-1&&k=='.'-'0')num+=1;
                   ^~
/in/lab4.c: In function 'nonspace':
/in/lab4.c:171:28: warning: comparison between pointer and integer
         while(arr[i+change]==" "){change+=1;}
                            ^~
/in/lab4.c:171:28: warning: comparison with string literal results in unspecified behavior [-Waddress]
/in/lab4.c:175:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for (int i=0;i<ln;++i)
     ^~~
/in/lab4.c:177:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
         arr[ln]='\0';
         ^~~
/in/lab4.c: In function 'main':
/in/lab4.c:197:27: warning: statement with no effect [-Wunused-value]
         car[strlen(car)-1]=='\0';
         ~~~~~~~~~~~~~~~~~~^~~~~~
/in/lab4.c:189:28: warning: unused variable 'test' [-Wunused-variable]
      int show=1,varnum[20],test=1;
                            ^~~~
/in/lab4.c:189:17: warning: unused variable 'varnum' [-Wunused-variable]
      int show=1,varnum[20],test=1;
                 ^~~~~~
/in/lab4.c: In function 'math':
/in/lab4.c:124:10: warning: argument 1 range [18446744071562067968, 18446744073709551615] exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
     char art[d + 1];
          ^~~
/in/lab4.c:124:10: note: in a call to built-in allocation function '__builtin_alloca_with_align'
# Status Time Cost Memory Cost
#1 Runtime Error (1) Detail 26ms 7.207 MiB

Information

Submit By
Type
Submission
Homework
Lab 4 (TEST ONLY)
Language
C
Submit At
2021-11-11 10:42:55
Judged At
2021-11-21 14:58:55
Judged By
Score
0
Total Time
26ms
Peak Memory
7.207 MiB