Pagini recente » Borderou de evaluare (job #927664) | Borderou de evaluare (job #2354545) | Borderou de evaluare (job #2910306) | Borderou de evaluare (job #9825) | Borderou de evaluare (job #2104946)
Borderou de evaluare (job #2104946)
Raport evaluator
Compilare:
user.cpp: In function ‘void DFS(std::pair<int, int>)’:
user.cpp:41:72: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
dirChanges[color] += (abs(painting[x - 1][y]) == color && abs(painting[x][y + 1]) == color ||
^
user.cpp:43:72: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
abs(painting[x + 1][y]) == color && abs(painting[x][y + 1]) == color ||
^
user.cpp:44:72: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
abs(painting[x + 1][y]) == color && abs(painting[x][y - 1]) == color);
^
user.cpp: In function ‘int main()’:
user.cpp:69:54: warning: suggest parentheses around comparison in operand of ‘==’ [-Wparentheses]
if(painting[i][j] > 0 && (painting[i][j] == painting[i][j + 1] +
^
user.cpp:70:54: warning: suggest parentheses around comparison in operand of ‘==’ [-Wparentheses]
painting[i][j] == painting[i + 1][j] +
^
user.cpp:71:54: warning: suggest parentheses around comparison in operand of ‘==’ [-Wparentheses]
painting[i][j] == painting[i][j - 1] +
^
user.cpp:52:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pictura.in", "r", stdin);
^
user.cpp:53:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pictura.out", "w", stdout);
^
user.cpp:55:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &N, &M);
^
user.cpp:61:41: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &painting[i][j]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 488kb | Incorect | 0 |
2 | 0ms | 496kb | Incorect | 0 |
3 | 0ms | 496kb | OK | 5 |
4 | 0ms | 496kb | Incorect | 0 |
5 | 0ms | 544kb | Incorect | 0 |
6 | 0ms | 548kb | Incorect | 0 |
7 | 0ms | 740kb | Incorect | 0 |
8 | 0ms | 776kb | Incorect | 0 |
9 | 4ms | 824kb | Incorect | 0 |
10 | 4ms | 860kb | Incorect | 0 |
11 | 16ms | 1268kb | Incorect | 0 |
12 | 16ms | 1264kb | Incorect | 0 |
13 | 32ms | 1676kb | Incorect | 0 |
14 | 32ms | 1668kb | Incorect | 0 |
15 | 36ms | 1676kb | Incorect | 0 |
16 | 76ms | 2108kb | Incorect | 0 |
17 | 112ms | 2544kb | Incorect | 0 |
18 | 180ms | 3404kb | Incorect | 0 |
19 | 260ms | 4244kb | Incorect | 0 |
20 | 312ms | 4688kb | Incorect | 0 |
Punctaj total | 5 |