Record Detail

Compile Error

/in/ex5.c: In function 'main':
/in/ex5.c:12:13: error: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Werror=format=]
     scanf("%s %d",command,&socialID);
            ~^
/in/ex5.c:12:16: error: format '%d' expects argument of type 'int *', but argument 3 has type 'int **' [-Werror=format=]
     scanf("%s %d",command,&socialID);
               ~^          ~~~~~~~~~
/in/ex5.c:13:20: error: character constant too long for its type [-Werror]
     if (command == 'checkIn') {
                    ^~~~~~~~~
/in/ex5.c:12:5: error: 'command' is used uninitialized in this function [-Werror=uninitialized]
     scanf("%s %d",command,&socialID);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Homework 5
Language
C
Submit At
2022-07-02 23:25:57
Judged At
2022-07-05 08:56:05
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes