/ SeriousOJ /

Record Detail

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 N = 0; str[N]!= '\0'; N++){
      |                    ^~~
      |                    strN
foo.c:8:20: note: each undeclared identifier is reported only once for each function it appears in
foo.c:9:17: error: 'i' undeclared (first use in this function)
    9 |         int str[i];
      |                 ^
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 N = 0; str[N]!= '\0'; N++){
        int str[i];

    }
    for(N =0; str[N]!= '\0'; N++){
            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
C11 (GCC 13.2.0)
Submit At
2025-09-01 06:07:37
Judged At
2025-09-01 06:07:37
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes