Record Detail

Compile Error

/in/ex1.c:14:5: error: redefinition of 'main'
 int main(){
     ^~~~
/in/ex1.c:3:5: note: previous definition of 'main' was here
 int main (){
     ^~~~
/in/ex1.c: In function 'main':
/in/ex1.c:15:5: error: statement with no effect [-Werror=unused-value]
     Spell wand[100];
     ^~~~~
/in/ex1.c:15:11: error: expected ';' before 'wand'
     Spell wand[100];
           ^~~~
/in/ex1.c:19:23: error: 'wand' undeclared (first use in this function)
         scanf("%s %s",wand[i].name,wand[i].dps);
                       ^~~~
/in/ex1.c:19:23: note: each undeclared identifier is reported only once for each function it appears in
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Mid2
Language
C
Submit At
2024-07-30 11:40:15
Judged At
2024-08-12 14:29:38
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes