Pagini recente » Borderou de evaluare (job #280075) | Borderou de evaluare (job #646403) | Borderou de evaluare (job #2862754) | Borderou de evaluare (job #1759960) | Borderou de evaluare (job #2104969)
Borderou de evaluare (job #2104969)
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 | 488kb | OK | 5 |
2 | 0ms | 496kb | OK | 5 |
3 | 0ms | 496kb | OK | 5 |
4 | 0ms | 500kb | OK | 5 |
5 | 0ms | 536kb | OK | 5 |
6 | 0ms | 548kb | OK | 5 |
7 | 0ms | 744kb | OK | 5 |
8 | 0ms | 776kb | OK | 5 |
9 | 4ms | 820kb | OK | 5 |
10 | 4ms | 864kb | OK | 5 |
11 | 12ms | 1268kb | OK | 5 |
12 | 16ms | 1268kb | OK | 5 |
13 | 32ms | 1672kb | OK | 5 |
14 | 32ms | 1676kb | OK | 5 |
15 | 32ms | 1676kb | OK | 5 |
16 | 80ms | 2108kb | OK | 5 |
17 | 112ms | 2544kb | OK | 5 |
18 | 188ms | 3412kb | OK | 5 |
19 | 272ms | 4244kb | OK | 5 |
20 | 324ms | 4688kb | OK | 5 |
Punctaj total | 100 |