0_0_39822192_16925.cpp: In function 'Set createSet(int*, int)':
0_0_39822192_16925.cpp:13:21: error: 'malloc' was not declared in this scope
13 | s.data = (int *)malloc(size * sizeof(int));
| ^~~~~~
0_0_39822192_16925.cpp:2:1: note: 'malloc' is defined in header '<cstdlib>'; did you forget to '#include <cstdlib>'?
1 | #include <stdio.h>
+++ |+#include <cstdlib>
2 |
0_0_39822192_16925.cpp: In function 'Set subtractSets(Set, Set)':
0_0_39822192_16925.cpp:40:26: error: 'malloc' was not declared in this scope
40 | result.data = (int *)malloc(count * sizeof(int));
| ^~~~~~
0_0_39822192_16925.cpp:40:26: note: 'malloc' is defined in header '<cstdlib>'; did you forget to '#include <cstdlib>'?
0_0_39822192_16925.cpp: In function 'int main()':
0_0_39822192_16925.cpp:60:5: error: 'free' was not declared in this scope
60 | free(setA.data);
| ^~~~
0_0_39822192_16925.cpp:60:5: note: 'free' is defined in header '<cstdlib>'; did you forget to '#include <cstdlib>'?
|