Borderou de evaluare (job #2578098)

Utilizator alexradu04Radu Alexandru alexradu04 Data 10 martie 2020 15:54:02
Problema Imagine Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 90

Raport evaluator

Compilare: main.cpp: In function 'char get(int, char)': main.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); } ^ main.cpp: In function 'void set(int, char, char)': main.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)); } ^ main.cpp: In function 'void solve()': main.cpp:41:22: warning: array subscript has type 'char' [-Wchar-subscripts] if (G[n][A[i]] == 3) ^ main.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]])); ^ main.cpp:7:20: note: in definition of macro 'COLOR' #define COLOR(x) ((x) == 1 ? 'a' : 'n') ^ main.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]])); ^ main.cpp:7:20: note: in definition of macro 'COLOR' #define COLOR(x) ((x) == 1 ? 'a' : 'n') ^ main.cpp: In function 'int main()': main.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); ^ main.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
111ms131kbOK10
22ms131kbOK10
32ms131kbOK10
42ms131kbOK10
52ms131kbOK10
682ms3522kbOK10
7118ms4308kbOK10
8427ms3522kbOK10
9876ms36880kbMemory limit exceeded0
101148ms34070kbOK10
Punctaj total90

Ceva nu functioneaza?