Borderou de evaluare (job #2227070)

Utilizator inquisitorAnders inquisitor Data 31 iulie 2018 09:17:53
Problema Generare de permutari Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp:2:0: warning: ignoring #pragma optimize GCC [-Wunknown-pragmas] #pragma optimize GCC("Ofast") user.cpp: In function ‘bool next_permutation(char*, char)’: user.cpp:8:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(i && v[i - 1] > v[i]) --i; ^ user.cpp:14:14: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(v[j] < v[i - 1]) --j; ^ user.cpp:16:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] v[i - 1] = v[i - 1] ^ v[j] ^ (v[j] = v[i - 1]); ^ user.cpp:16:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] v[i - 1] = v[i - 1] ^ v[j] ^ (v[j] = v[i - 1]); ^ user.cpp:16:40: warning: operation on ‘*(v + ((sizetype)j))’ may be undefined [-Wsequence-point] v[i - 1] = v[i - 1] ^ v[j] ^ (v[j] = v[i - 1]); ~~~~~~^~~~~~~~~~~ user.cpp:20:12: warning: array subscript has type ‘char’ [-Wchar-subscripts] v[i] = v[i] ^ v[j] ^ (v[j] = v[i]); ^ user.cpp:20:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] v[i] = v[i] ^ v[j] ^ (v[j] = v[i]); ^ user.cpp:20:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] v[i] = v[i] ^ v[j] ^ (v[j] = v[i]); ^ user.cpp:20:34: warning: array subscript has type ‘char’ [-Wchar-subscripts] v[i] = v[i] ^ v[j] ^ (v[j] = v[i]); ^ user.cpp:20:41: warning: array subscript has type ‘char’ [-Wchar-subscripts] v[i] = v[i] ^ v[j] ^ (v[j] = v[i]); ^ user.cpp:20:36: warning: operation on ‘*(v + ((sizetype)j))’ may be undefined [-Wsequence-point] v[i] = v[i] ^ v[j] ^ (v[j] = v[i]); ~~~~~~^~~~~~~ user.cpp: At global scope: user.cpp:4:37: warning: always_inline function might not be inlinable [-Wattributes] __attribute__((always_inline)) bool next_permutation(char v[], char N) ^~~~~~~~~~~~~~~~ user.cpp: In function ‘int main()’: user.cpp:28:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("permutari.in", "r", stdin); ^ user.cpp:29:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("permutari.out", "w", stdout); ^ user.cpp:35:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &N);
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms756kbOK20
20ms884kbOK20
30ms796kbOK20
40ms808kbOK20
54ms1320kbOK20
Punctaj total100

Ceva nu functioneaza?