Compile Error
foo.c: In function 'main': foo.c:8:20: error: 'str' undeclared (first use in this function); did you mean 'strN'? 8 | for(int i = 0; str[i]!= '\0'; i++){ | ^~~ | strN foo.c:8:20: note: each undeclared identifier is reported only once for each function it appears in foo.c:13:17: error: assignment to expression with array type 13 | strM= 'a'&& 'z'; | ^ foo.c:14:17: error: assignment to expression with array type 14 | strN= 'a'&&'z'; | ^
Code
#include<stdio.h>
int main(){
char strM[100],strN[100];
scanf("%d %d", strM, strN);
int length=0;
int N, M;
scanf("%d %d", &N, &M);
for(int i = 0; str[i]!= '\0'; i++){
int str[i];
}
for(int i =0; str[i]!= '\0'; i++){
strM= 'a'&& 'z';
strN= 'a'&&'z';
length+=20;
}
printf("Welcome! %d\n", str);
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 05:53:38
- Judged At
- 2025-09-01 05:53:38
- Judged By
- Score
- 0
- Total Time
- 0ms
- Peak Memory
- 0 Bytes