Borderou de evaluare (job #3233303)
Utilizator | Data | 2 iunie 2024 22:47:22 | |
---|---|---|---|
Problema | Heavy Path Decomposition | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dfs(int)':
main.cpp:28:35: error: void value not ignored as it ought to be
28 | int subtree_size = dfs(u);
| ~~~^~~
main.cpp:38:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
38 | return size;
| ^~~~
main.cpp: In function 'int main()':
main.cpp:131:5: error: 'memset' was not declared in this scope
131 | memset(heavy, -1, sizeof(heavy));
| ^~~~~~
main.cpp:6:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
5 | #include <cmath>
+++ |+#include <cstring>
6 | #include <limits>
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !