Record Detail

Compile Error

/in/ex1.c: In function 'tolower_string':
/in/ex1.c:8:20: error: conversion to 'char' from 'int' may alter its value [-Werror=conversion]
         array[i] = tolower(array[i]);
                    ^~~~~~~
/in/ex1.c: In function 'main':
/in/ex1.c:15:18: error: conversion to 'char' from 'int' may alter its value [-Werror=conversion]
         if((ch = getchar()) == '\n' ){
                  ^~~~~~~
/in/ex1.c:20:21: error: conversion to 'char' from 'int' may alter its value [-Werror=conversion]
         while ((ch =getchar()) !='.'){
                     ^~~~~~~
/in/ex1.c:23:17: error: format '%s' expects argument of type 'char *', but argument 2 has type 'char ***' [-Werror=format=]
         scanf("%s", array[i++]);
                ~^   ~~~~~
/in/ex1.c:24:41: error: passing argument 1 of 'strlen' from incompatible pointer type [-Werror=incompatible-pointer-types]
         tolower_string(array[i], strlen(array[i]));
                                         ^~~~~
In file included from /in/prepare.h:9:0,
                 from /in/ex1.c:4:
/usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'char ***'
 extern size_t strlen (const char *__s)
               ^~~~~~
/in/ex1.c:24:24: error: passing argument 1 of 'tolower_string' from incompatible pointer type [-Werror=incompatible-pointer-types]
         tolower_string(array[i], strlen(array[i]));
                        ^~~~~
/in/ex1.c:6:7: note: expected 'char *' but argument is of type 'char ***'
 void *tolower_string(char array[], size_t len){
       ^~~~~~~~~~~~~~
/in/ex1.c:27:5: error: unknown type name 'after'; did you mean 'assert'?
     after making all the string to lower case, we can test whether it is unique.
     ^~~~~
     assert
/in/ex1.c:27:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'all'
     after making all the string to lower case, we can test whether it is unique.
                  ^~~
/in/ex1.c:30:18: error: stray '\351' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                  ^
/in/ex1.c:30:19: error: stray '\201' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                   ^
/in/ex1.c:30:20: error: stray '\215' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                    ^
/in/ex1.c:30:21: error: stray '\345' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                     ^
/in/ex1.c:30:22: error: stray '\216' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                      ^
/in/ex1.c:30:23: error: stray '\206' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                       ^
/in/ex1.c:30:24: error: stray '\345' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                        ^
/in/ex1.c:30:25: error: stray '\255' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                         ^
/in/ex1.c:30:26: error: stray '\227' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                          ^
/in/ex1.c:30:27: error: stray '\347' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                           ^
/in/ex1.c:30:28: error: stray '\254' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                            ^
/in/ex1.c:30:29: error: stray '\246' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                             ^
/in/ex1.c:30:30: error: stray '\344' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                              ^
/in/ex1.c:30:31: error: stray '\270' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                               ^
/in/ex1.c:30:32: error: stray '\262' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                ^
/in/ex1.c:30:33: error: stray '\357' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                 ^
/in/ex1.c:30:34: error: stray '\274' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                  ^
/in/ex1.c:30:35: error: stray '\214' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                   ^
/in/ex1.c:30:36: error: stray '\345' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                    ^
/in/ex1.c:30:37: error: stray '\275' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                     ^
/in/ex1.c:30:38: error: stray '\223' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                      ^
/in/ex1.c:30:39: error: stray '\346' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                       ^
/in/ex1.c:30:40: error: stray '\262' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                        ^
/in/ex1.c:30:41: error: stray '\241' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                         ^
/in/ex1.c:30:42: error: stray '\345' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                          ^
/in/ex1.c:30:43: error: stray '\207' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                           ^
/in/ex1.c:30:44: error: stray '\272' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                            ^
/in/ex1.c:30:45: error: stray '\347' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                             ^
/in/ex1.c:30:46: error: stray '\216' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                              ^
/in/ex1.c:30:47: error: stray '\260' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                               ^
/in/ex1.c:30:48: error: stray '\350' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                ^
/in/ex1.c:30:49: error: stray '\277' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                 ^
/in/ex1.c:30:50: error: stray '\207' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                  ^
/in/ex1.c:30:51: error: stray '\346' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                   ^
/in/ex1.c:30:52: error: stray '\227' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                    ^
/in/ex1.c:30:53: error: stray '\266' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                     ^
/in/ex1.c:30:54: error: stray '\357' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                      ^
/in/ex1.c:30:55: error: stray '\274' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                       ^
/in/ex1.c:30:56: error: stray '\214' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                        ^
/in/ex1.c:30:57: error: stray '\345' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                         ^
/in/ex1.c:30:58: error: stray '\257' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                          ^
/in/ex1.c:30:59: error: stray '\271' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                           ^
/in/ex1.c:30:60: error: stray '\345' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                            ^
/in/ex1.c:30:61: error: stray '\272' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                             ^
/in/ex1.c:30:62: error: stray '\224' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                              ^
/in/ex1.c:30:63: error: stray '\346' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                               ^
/in/ex1.c:30:64: error: stray '\225' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                ^
/in/ex1.c:30:65: error: stray '\260' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                 ^
/in/ex1.c:30:66: error: stray '\347' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                  ^
/in/ex1.c:30:67: error: stray '\273' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                   ^
/in/ex1.c:30:68: error: stray '\204' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                    ^
/in/ex1.c:30:72: error: stray '\345' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                        ^
/in/ex1.c:30:73: error: stray '\200' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                         ^
/in/ex1.c:30:74: error: stray '\274' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                          ^
/in/ex1.c:30:75: error: stray '\345' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                           ^
/in/ex1.c:30:76: error: stray '\210' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                            ^
/in/ex1.c:30:77: error: stray '\235' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                             ^
/in/ex1.c:30:78: error: stray '\345' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                              ^
/in/ex1.c:30:79: error: stray '\247' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                               ^
/in/ex1.c:30:80: error: stray '\213' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                                ^
/in/ex1.c:30:81: error: stray '\345' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                                 ^
/in/ex1.c:30:82: error: stray '\214' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                                  ^
/in/ex1.c:30:83: error: stray '\226' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                                   ^
/in/ex1.c:30:84: error: stray '\357' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                                    ^
/in/ex1.c:30:85: error: stray '\274' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                                     ^
/in/ex1.c:30:86: error: stray '\214' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                                      ^
/in/ex1.c:30:87: error: stray '\345' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                                       ^
/in/ex1.c:30:88: error: stray '\271' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                                        ^
/in/ex1.c:30:89: error: stray '\266' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                                         ^
/in/ex1.c:30:90: error: stray '\350' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                                          ^
/in/ex1.c:30:91: error: stray '\265' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                                           ^
/in/ex1.c:30:92: error: stray '\213' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                                            ^
/in/ex1.c:30:93: error: stray '\345' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                                             ^
/in/ex1.c:30:94: error: stray '\200' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                                              ^
/in/ex1.c:30:95: error: stray '\274' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                                               ^
/in/ex1.c:30:96: error: stray '\344' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                                                ^
/in/ex1.c:30:97: error: stray '\270' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                                                 ^
/in/ex1.c:30:98: error: stray '\200' in program
                 (遍历字符串,当没出现过时,对应数组key值初始化,并赋值一,当出现过时,加上1)
                                                                                                  ^
/in/ex1.c:3

Information

Submit By
Type
Submission
Problem
Mid2 Ex1
Homework
Midterm Exam 2
Language
C
Submit At
2022-07-08 16:18:53
Judged At
2022-07-08 16:18:53
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes