Record Detail

Compile Error

/in/main.c: In function 'judge':
/in/main.c:18:16: error: passing argument 1 of 'time' makes pointer from integer without a cast [-Werror=int-conversion]
     srand(time(seed));
                ^~~~
In file included from /in/main.c:3:0:
/usr/include/time.h:192:15: note: expected 'time_t * {aka long int *}' but argument is of type 'int'
 extern time_t time (time_t *__timer) __THROW;
               ^~~~
/in/main.c:24:27: error: unused variable 'country' [-Werror=unused-variable]
           struct country *country=&c1;
                           ^~~~~~~
/in/main.c:29:27: error: unused variable 'country' [-Werror=unused-variable]
           struct country *country=&c2;
                           ^~~~~~~
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Lab 5
Language
C
Submit At
2018-06-25 22:53:10
Judged At
2018-06-25 22:53:10
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes