The problem statement says we can print in any order. I used the SCC and prints each component on one line according to the problem but I keep getting WA on each submission. Could you explain me please?? This is my code
| № | Пользователь | Рейтинг |
|---|---|---|
| 1 | Benq | 3676 |
| 2 | Kevin114514 | 3657 |
| 3 | jiangly | 3638 |
| 4 | turmax | 3442 |
| 5 | tourist | 3380 |
| 6 | Um_nik | 3353 |
| 7 | strapple | 3350 |
| 8 | squareOf105 | 3346 |
| 9 | heuristica | 3322 |
| 10 | maroonrk | 3310 |
| Страны | Города | Организации | Всё → |
| № | Пользователь | Вклад |
|---|---|---|
| 1 | Qingyu | 158 |
| 2 | nik_exists | 151 |
| 3 | maspy | 150 |
| 4 | AmShZ | 144 |
| 5 | Um_nik | 143 |
| 6 | Errichto | 139 |
| 7 | adamant | 137 |
| 8 | BledDest | 135 |
| 9 | maroonrk | 133 |
| 10 | qwexd | 130 |
The problem statement says we can print in any order. I used the SCC and prints each component on one line according to the problem but I keep getting WA on each submission. Could you explain me please?? This is my code
| Название |
|---|



The following is a slight update to your code, and it was Accepted at UVa Online Judge. The updated code automates the data initialization using C++ class constructors. A data_set data structure was declared whose constructor is called implicitly when an object is declared, and whose destructor is called implicitly to clean up the dynamic memory at the end of the code block in which such object is declared. Callers indexing was updated to start at index 0, and everything else is almost the same. A caller_t data structure was declared to store the caller information as a vertex in the calling circle graph. Your depth-first search aglorithm to find Strongly Connected Components SCC is correct, but the WA to your code might have been caused by incorrect array or map indexing in some boundary test case that the UVa site does not release.