Borderou de evaluare (job #2238650)

Utilizator NOSCOPEPROKENDYMACHEAMACUMVREAU NOSCOPEPROKENDY Data 6 septembrie 2018 20:30:51
Problema Imagine Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘char get(int, char)’: user.cpp:14:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] inline char get(int x, char y) { return G[x][y]; } //(G[x] & (3<<(2*y))) >> (2*y); } ^ user.cpp: In function ‘void set(int, char, char)’: user.cpp:15:48: warning: array subscript has type ‘char’ [-Wchar-subscripts] inline void set(int x, char y, char z) { G[x][y] = z; } //G[x] |= (z<<(2*y)); } ^ user.cpp: In function ‘void solve()’: user.cpp:41:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (G[n][A[i]] == 3) ^ user.cpp:46:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] else putchar(color ? COLOR(3-G[n][A[i]]) : COLOR(G[n][A[i]])); ^ user.cpp:7:20: note: in definition of macro ‘COLOR’ #define COLOR(x) ((x) == 1 ? 'a' : 'n') ^ user.cpp:46:67: warning: array subscript has type ‘char’ [-Wchar-subscripts] else putchar(color ? COLOR(3-G[n][A[i]]) : COLOR(G[n][A[i]])); ^ user.cpp:7:20: note: in definition of macro ‘COLOR’ #define COLOR(x) ((x) == 1 ? 'a' : 'n') ^ user.cpp: In function ‘int main()’: user.cpp:54:29: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen(FIN, "r", stdin); ^ user.cpp:55:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen(FOUT, "w", stdout); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms876kbOK10
28ms860kbOK10
34ms800kbOK10
44ms876kbOK10
54ms868kbOK10
688ms3012kbOK10
7116ms3632kbOK10
8468ms3008kbOK10
91136ms31808kbOK10
101260ms24096kbOK10
Punctaj total100

Ceva nu functioneaza?