Borderou de evaluare (job #1934843)

Utilizator stoianmihailStoian Mihail stoianmihail Data 21 martie 2017 21:06:33
Problema Omizi Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void update(char, int, int, int, int)’: user.cpp:33:14: warning: array subscript has type ‘char’ [-Wchar-subscripts] tree[task][u] = 0; ^ user.cpp:43:16: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (tree[task][2 * u]) { ^ user.cpp:44:14: warning: array subscript has type ‘char’ [-Wchar-subscripts] tree[task][u] = tree[task][2 * u]; ^ user.cpp:44:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] tree[task][u] = tree[task][2 * u]; ^ user.cpp:46:14: warning: array subscript has type ‘char’ [-Wchar-subscripts] tree[task][u] = tree[task][2 * u + 1]; ^ user.cpp:46:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] tree[task][u] = tree[task][2 * u + 1]; ^ user.cpp: In function ‘void query(char, int, int, int, int, int)’: user.cpp:52:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (tree[task][u] && tree[task][u] < pos) { ^ user.cpp:52:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (tree[task][u] && tree[task][u] < pos) { ^ user.cpp:53:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] pos = tree[task][u]; ^ user.cpp:59:28: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (a <= mid && tree[task][2 * u]) { ^ user.cpp:62:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (b > mid && tree[task][2 * u + 1]) { ^ user.cpp: In function ‘int main()’: user.cpp:125:29: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d %d", &N, &M); ^ user.cpp:127:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d", &x); ^ user.cpp:130:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d", &x); ^ user.cpp:135:34: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d %c", &x, &type); ^ user.cpp:147:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("omizi.out", "w", stdout);
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms556kbOK10
20ms628kbOK10
34ms700kbOK10
48ms1244kbOK10
58ms1468kbOK10
632ms2016kbOK10
732ms2020kbOK10
816ms1296kbOK10
916ms800kbOK10
1016ms832kbOK10
Punctaj total100

Ceva nu functioneaza?