Borderou de evaluare (job #2644806)

Utilizator akumariaPatrascanu Andra-Maria akumaria Data 26 august 2020 00:02:49
Problema Problema Damelor Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'bool is_valid(int, int, int, bool*, bool*, bool*)': main.cpp:8:13: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if (y <= n && columns[y] == true || diags1[n + x-y] == true || diags2[x+y] == true) ~~~~~~~^~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:28:54: warning: suggest parentheses around assignment used as truth value [-Wparentheses] columns[i] = diags1[i] = diags2[i] = used[i] = ys[0] = 0; ~~~~~~~~^~~~~~~~~~~ main.cpp:15:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("damesah.in", "r", stdin); ^ main.cpp:16:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("damesah.out", "w", stdout); ^ main.cpp:19:17: 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
12ms131kbOK10
22ms131kbOK10
32ms131kbOK10
42ms131kbOK10
52ms131kbOK10
63ms131kbOK10
78ms131kbOK10
834ms131kbOK10
9153ms131kbOK10
10942ms131kbOK10
Punctaj total100

Ceva nu functioneaza?