/ SeriousOJ /

Record Detail

Compile Error

/usr/bin/ld: /tmp/ccp8Gzf0.o: in function `main':
foo.c:(.text.startup+0xb9): undefined reference to `strlwr'
collect2: error: ld returned 1 exit status

Code

#include<stdio.h>
#include<string.h>
//My Name is maher Ahmed i am a new student at leading university.batch 63 (c)
int main(){
    int T;
    scanf("%d",&T);
    for(int i=0;i<T;i++)
    {
        char S[105];
        scanf("%s",S);
        int n=strlen(S);
        while(n>1)
        {
            int j=0;
            //for skiping even postive
            for(int i=0;i<n;i=i+2)
            {
                S[j++]=S[i];
            }
            S[j]='\0';
            n=j;
        }
        printf("%s\n",strlwr(S));
    }
}

Information

Submit By
Type
Submission
Problem
P1080 String Algorithm
Contest
Bangladesh 2.0
Language
C11 (GCC 13.2.0)
Submit At
2024-08-16 17:11:48
Judged At
2024-10-03 13:23:32
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes