Borderou de evaluare (job #709162)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Partiții (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 17 mar. 2023 21:16:55 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void print_partition(const std::vector<int>&)':
main.cpp:16:59: error: a function-definition is not allowed here before '{' token
16 | void generate_partitions(int n, vector<int>& p, int last) {
| ^
main.cpp:29:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
29 | int main() {
| ^~
main.cpp:29:9: note: remove parentheses to default-initialize a variable
29 | int main() {
| ^~
| --
main.cpp:29:9: note: or replace parentheses with braces to value-initialize a variable
main.cpp:29:12: error: a function-definition is not allowed here before '{' token
29 | int main() {
| ^
main.cpp:35:2: error: expected '}' at end of input
35 | }
| ^
main.cpp:8:44: note: to match this '{'
8 | void print_partition(const vector<int>& p) {
| ^