Record Detail

Compile Error

/in/ex4.c: In function 'main':
/in/ex4.c:16:13: error: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Werror=format=]
     scanf("%s",para[k]);
            ~^  ~~~~~~~
/in/ex4.c:17:21: error: comparison between pointer and integer [-Werror]
     for (i=1;para[i]!="\0";i++){
                     ^~
/in/ex4.c:17:21: error: comparison with string literal results in unspecified behavior [-Werror=address]
/in/ex4.c:25:36: error: invalid operands to binary ^ (have 'double' and 'int')
             func = func + para[j]*x^(k-j);
                    ~~~~~~~~~~~~~~~~^~~~~~
/in/ex4.c:32:18: error: format '%d' expects argument of type 'int', but argument 2 has type 'double' [-Werror=format=]
         printf("%d",s);
                 ~^
                 %f
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Homework 4
Language
C
Submit At
2022-06-25 23:57:15
Judged At
2022-06-29 06:52:35
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes