Borderou de evaluare (job #2334895)

Utilizator Ruxandra985Nanu Ruxandra Laura Ruxandra985 Data 3 februarie 2019 12:21:44
Problema Substr Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 40

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:44:29: warning: array subscript has type 'char' [-Wchar-subscripts] sff_arr[0][i]=f[s[i]]; /// nr de ordine al suff de l (1<<0) care inc pe i ^ main.cpp:32:13: warning: unused variable 'elem' [-Wunused-variable] int k,i,elem,dif,j,pmax,maxi; ^~~~ main.cpp:33:32: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf (fin,"%d%d\n",&n,&k); ^ main.cpp:34:26: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] fgets (s+1,20000,fin); ^ In file included from /usr/include/stdio.h:936:0, from /usr/include/c++/6/cstdio:42, from main.cpp:1: In function 'char* fgets(char*, int, FILE*)', inlined from 'int main()' at main.cpp:34:26: /usr/include/x86_64-linux-gnu/bits/stdio2.h:261:58: warning: call to '__fgets_chk_warn' declared with attribute warning: fgets called with bigger size than length of destination buffer return __fgets_chk_warn (__s, __bos (__s), __n, __stream); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
186ms1572kbOK10
299ms1572kbOK10
3101ms1441kbTime limit exceeded0
416ms524kbOK10
5100ms393kbTime limit exceeded0
6100ms393kbTime limit exceeded0
718ms393kbKilled by Signal 110
819ms262kbOK10
930ms393kbKilled by Signal 110
10101ms393kbTime limit exceeded0
Punctaj total40

Ceva nu functioneaza?