Borderou de evaluare (job #1854330)

Utilizator oldatlantianSerban Cercelescu oldatlantian Data 22 ianuarie 2017 16:37:36
Problema Sabin Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void baga1(int)’: user.cpp:72:59: warning: array subscript has type ‘char’ [-Wchar-subscripts] hsh[j].h1 = (hsh[j].h1 * BAS1 + alf1[str[j][i]]); ^ user.cpp:73:59: warning: array subscript has type ‘char’ [-Wchar-subscripts] hsh[j].h2 = (hsh[j].h2 * BAS2 + alf2[str[j][i]]); } ^ user.cpp: In function ‘void baga2(int)’: user.cpp:87:50: warning: array subscript has type ‘char’ [-Wchar-subscripts] hsh.h1 = hsh.h1 * BAS1 + alf1[str[idx][i]]; ^ user.cpp:88:50: warning: array subscript has type ‘char’ [-Wchar-subscripts] hsh.h2 = hsh.h2 * BAS2 + alf2[str[idx][i]]; ^ user.cpp: In function ‘char nextch()’: user.cpp:42:36: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(buff, 1, BMAX, stdin); } ^ user.cpp: In function ‘int main()’: user.cpp:119:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sabin.in", "r", stdin); ^ user.cpp:120:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sabin.out", "w", stdout); ^ user.cpp:123:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d%d ", &n, &k, &m, &p, &q); ^ user.cpp:128:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", str[j] + 1); ^ user.cpp:132:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", str[i] + 1); ^ user.cpp: In function ‘void init()’: user.cpp:61:37: warning: iteration 31u invokes undefined behavior [-Waggressive-loop-optimizations] pwr1[i] = pwr1[i - 1] * BAS1; ^ user.cpp:60:5: note: containing loop for (int i = 1; i < 256; ++i) { ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
124ms1176kbOK10
24ms992kbOK10
312ms1068kbOK10
4200ms5328kbOK10
5260ms6600kbOK10
6580ms11260kbOK10
7688ms12636kbOK10
8752ms12696kbOK10
9804ms13300kbOK10
10796ms13300kbOK10
Punctaj total100

Ceva nu functioneaza?