Record Detail

Compile Error

/in/ex1.c: In function 'main':
/in/ex1.c:17:9: error: conversion to 'char' from 'int' may alter its value [-Werror=conversion]
    x[j]=getchar();
         ^~~~~~~
/in/ex1.c:26:9: error: conversion to 'char' from 'int' may alter its value [-Werror=conversion]
    y[j]=getchar();
         ^~~~~~~
/in/ex1.c:27:21: error: expected ')' before '{' token
    if (isupper(y[j]){
                     ^
/in/ex1.c:37:3: error: expected expression before '}' token
   }
   ^
/in/ex1.c:45:9: error: conversion to 'char' from 'int' may alter its value [-Werror=conversion]
   aa[j]=b[i];
         ^
/in/ex1.c:59:9: error: conversion to 'char' from 'int' may alter its value [-Werror=conversion]
    a[j]=b[i];
         ^
/in/ex1.c:96:1: error: expected ';' before '}' token
 }
 ^
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:12:31
Judged At
2022-07-08 16:05:03
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes