Wrong Answer
Code
#include<stdio.h>
#include<string.h>
int main(){
int t;
scanf("%d", &t);
char *guest;
guest = ("bob", "dave", "elice", "eve");
for(int i = 0; i<t; i++){
char name;
scanf("%s \n", name);
if(name == *guest){
printf("Welcome!\n");
}
else if(name != *guest){
printf("Sorry, not on the list.\n");
}
else if(name == name){
printf("Already inside!\n");
}
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1227 LUCC Party Check-in
- Contest
- LUCC Presents Kick & Code Intra LU Programming Contest
- Language
- C99 (GCC 13.2.0)
- Submit At
- 2025-09-01 06:02:49
- Judged At
- 2025-09-01 06:02:49
- Judged By
- Score
- 0
- Total Time
- 0ms
- Peak Memory
- 284.0 KiB