Record Detail

Compile Error

/in/fileReverse.c: In function 'main':
/in/fileReverse.c:20:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for (int i = 0; i < strlen(str) / 2; i++){
                           ^
/in/fileReverse.c:21:17: error: conversion to 'int' from 'size_t {aka long unsigned int}' may alter its value [-Werror=conversion]
             j = strlen(str)-1;
                 ^~~~~~
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Midterm Exam 2
Language
C
Submit At
2022-07-07 15:06:17
Judged At
2022-07-08 16:05:16
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes