Pagini recente » Borderou de evaluare (job #357852) | Borderou de evaluare (job #3191131) | Borderou de evaluare (job #3039509) | Borderou de evaluare (job #1147758) | Borderou de evaluare (job #2104968)
Borderou de evaluare (job #2104968)
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 | 468kb | OK | 5 |
2 | 0ms | 476kb | OK | 5 |
3 | 0ms | 472kb | OK | 5 |
4 | 0ms | 480kb | Incorect | 0 |
5 | 0ms | 512kb | Incorect | 0 |
6 | 0ms | 516kb | Incorect | 0 |
7 | 0ms | 716kb | Incorect | 0 |
8 | 0ms | 748kb | Incorect | 0 |
9 | 4ms | 804kb | Incorect | 0 |
10 | 4ms | 844kb | Incorect | 0 |
11 | 16ms | 1240kb | Incorect | 0 |
12 | 16ms | 1244kb | Incorect | 0 |
13 | 32ms | 1648kb | Incorect | 0 |
14 | 32ms | 1652kb | Incorect | 0 |
15 | 32ms | 1644kb | Incorect | 0 |
16 | 76ms | 2076kb | Incorect | 0 |
17 | 112ms | 2516kb | Incorect | 0 |
18 | 184ms | 3384kb | Incorect | 0 |
19 | 268ms | 4220kb | Incorect | 0 |
20 | 332ms | 4660kb | Incorect | 0 |
Punctaj total | 15 |