Record Detail

Compile Error

/in/hasCircular.c:3:24: error: 'struct ListNode' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
 int hasCircular(struct ListNode* head)
                        ^~~~~~~~
/in/hasCircular.c: In function 'hasCircular':
/in/hasCircular.c:5:10: error: dereferencing pointer to incomplete type 'struct ListNode'
  if (head->next == NULL)
          ^~
/in/hasCircular.c:13:1: error: control reaches end of non-void function [-Werror=return-type]
 }
 ^
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Homework 6
Language
C
Submit At
2022-07-09 21:03:51
Judged At
2022-07-13 14:35:11
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes