Pagini recente » Borderou de evaluare (job #1273162) | Borderou de evaluare (job #2907786) | Borderou de evaluare (job #1096039) | Borderou de evaluare (job #1170143) | Borderou de evaluare (job #2104958)
Borderou de evaluare (job #2104958)
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: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 | 492kb | Incorect | 0 |
2 | 0ms | 496kb | Incorect | 0 |
3 | 0ms | 492kb | OK | 5 |
4 | 0ms | 504kb | Incorect | 0 |
5 | 0ms | 544kb | Incorect | 0 |
6 | 0ms | 540kb | Incorect | 0 |
7 | 0ms | 736kb | Incorect | 0 |
8 | 0ms | 776kb | Incorect | 0 |
9 | 4ms | 820kb | Incorect | 0 |
10 | 4ms | 868kb | Incorect | 0 |
11 | 16ms | 1268kb | Incorect | 0 |
12 | 16ms | 1268kb | Incorect | 0 |
13 | 32ms | 1672kb | Incorect | 0 |
14 | 32ms | 1676kb | Incorect | 0 |
15 | 32ms | 1672kb | Incorect | 0 |
16 | 76ms | 2100kb | Incorect | 0 |
17 | 116ms | 2548kb | Incorect | 0 |
18 | 176ms | 3408kb | Incorect | 0 |
19 | 268ms | 4252kb | Incorect | 0 |
20 | 336ms | 4688kb | Incorect | 0 |
Punctaj total | 5 |