Borderou de evaluare (job #2310314)

Utilizator Ruxandra985Nanu Ruxandra Laura Ruxandra985 Data 31 decembrie 2018 10:19:22
Problema Mesaj2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 70

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:20:15: warning: array subscript has type 'char' [-Wchar-subscripts] d[s[i]][i]=i; ^ main.cpp:28:21: warning: array subscript has type 'char' [-Wchar-subscripts] for(i=d[a[1]][1];i<=n-l+1&&i!=0;i=d[a[1]][i+1]){ ^ main.cpp:28:49: warning: array subscript has type 'char' [-Wchar-subscripts] for(i=d[a[1]][1];i<=n-l+1&&i!=0;i=d[a[1]][i+1]){ ^ main.cpp:33:27: warning: array subscript has type 'char' [-Wchar-subscripts] j=d[a[poz]][j+1]; ^ main.cpp:15:25: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] fgets (s+1,1005,fin); ^ main.cpp:22:28: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf (fin,"%hd\n",&m); ^ main.cpp:25:29: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] fgets (a+1,1005,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:15:25: /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); ^ In function 'char* fgets(char*, int, FILE*)', inlined from 'int main()' at main.cpp:25:29: /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
13ms393kbOK10
23ms393kbOK10
33ms393kbOK10
44ms393kbOK10
518ms393kbOK10
69ms393kbOK10
753ms393kbTime limit exceeded0
849ms393kbOK10
954ms393kbTime limit exceeded0
1054ms393kbTime limit exceeded0
Punctaj total70

Ceva nu functioneaza?