Borderou de evaluare (job #2159375)

Utilizator smatei16Matei Staicu smatei16 Data 10 martie 2018 21:35:24
Problema Interesant Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int interesant(int, int)’: user.cpp:10:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<strlen(s[x])&& j<strlen(s[y]);i++) ^ user.cpp:10:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<strlen(s[x])&& j<strlen(s[y]);i++) ^ user.cpp:12:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(j==strlen(s[y]))return true; ^ user.cpp: In function ‘int main()’: user.cpp:22:25: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[5005]’ [-Wformat=] scanf("%s",&s[i]); ^ user.cpp:26:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(strlen(s[i])>Max){Max=strlen(s[i]);poz=i;} ^ user.cpp:27:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] else if((strlen(s[i])==Max) && strcmp(s[i],s[poz])<0)poz=i; ^ user.cpp:18:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("interesant.in","r",stdin); ^ user.cpp:19:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("interesant.out","w",stdout); ^ user.cpp:20:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&p,&n); ^ user.cpp:22:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s",&s[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
14ms2032kbOK.520
24ms2264kbOK.5
30ms1476kbOK.5
40ms2012kbOK.5
50ms1324kbNumar de siruri incorect.00
664ms2056kbNumar de siruri incorect.00
70ms1360kbNumar de siruri incorect.00
8108ms1820kbNumar de siruri incorect.00
972ms2220kbOK.44
10312ms2208kbOK.44
1160ms2128kbNumar de siruri incorect.00
12320ms2244kbNumar de siruri incorect.00
13324ms2188kbNumar de siruri incorect.00
14352ms2220kbNumar de siruri incorect.00
15280ms2320kbNumar de siruri incorect.00
16400ms2312kbNumar de siruri incorect.00
17352ms2276kbNumar de siruri incorect.00
18416ms2204kbNumar de siruri incorect.00
19436ms2328kbNumar de siruri incorect.00
20580ms2284kbOK.66
21580ms2288kbOK.66
22544ms2300kbNumar de siruri incorect.00
Punctaj total40

Ceva nu functioneaza?