Record Detail

Compile Error

/in/fileReverse.c: In function 'main':
/in/fileReverse.c:19:21: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
   for (int i = 0; i < len; i++) {
                     ^
/in/fileReverse.c:20:21: error: conversion to 'size_t {aka long unsigned int}' from 'int' may change the sign of the result [-Werror=sign-conversion]
    b[i] = a[len - 1 - i];
                     ^
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Midterm Exam 2
Language
C
Submit At
2022-07-07 15:37:35
Judged At
2022-07-08 16:04:48
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes