0_0_39822196_8714.cpp:1:10: error: 'cstdlib' was not declared in this scope
1 | include <cstdlib>
| ^~~~~~~
0_0_39822196_8714.cpp:1:10: error: 'cstdlib' was not declared in this scope
0_0_39822196_8714.cpp:1:10: error: 'cstdlib' was not declared in this scope
0_0_39822196_8714.cpp:1:10: error: 'cstdlib' was not declared in this scope
0_0_39822196_8714.cpp:1:10: error: 'cstdlib' was not declared in this scope
0_0_39822196_8714.cpp:1:10: error: 'cstdlib' was not declared in this scope
0_0_39822196_8714.cpp:1:10: error: 'cstdlib' was not declared in this scope
0_0_39822196_8714.cpp:1:10: error: 'cstdlib' was not declared in this scope
0_0_39822196_8714.cpp:1:10: error: 'cstdlib' was not declared in this scope
0_0_39822196_8714.cpp:1:1: error: 'include' does not name a type
1 | include <cstdlib>
| ^~~~~~~
0_0_39822196_8714.cpp:8:3: error: 'Set' does not name a type
8 | } Set;
| ^~~
0_0_39822196_8714.cpp:11:1: error: 'Set' does not name a type
11 | Set createSet(int *arr, int size) {
| ^~~
0_0_39822196_8714.cpp:22:10: error: 'Set' was not declared in this scope
22 | int find(Set s, int element) {
| ^~~
0_0_39822196_8714.cpp:22:17: error: expected primary-expression before 'int'
22 | int find(Set s, int element) {
| ^~~
0_0_39822196_8714.cpp:22:28: error: expression list treated as compound expression in initializer [-fpermissive]
22 | int find(Set s, int element) {
| ^
0_0_39822196_8714.cpp:32:1: error: 'Set' does not name a type
32 | Set subtractSets(Set a, Set b) {
| ^~~
0_0_39822196_8714.cpp: In function 'int main()':
0_0_39822196_8714.cpp:54:5: error: 'Set' was not declared in this scope
54 | Set setA = createSet(arrA, sizeof(arrA) / sizeof(arrA[0]));
| ^~~
0_0_39822196_8714.cpp:55:8: error: expected ';' before 'setB'
55 | Set setB = createSet(arrB, sizeof(arrB) / sizeof(arrB[0]));
| ^~~~~
| ;
0_0_39822196_8714.cpp:56:8: error: expected ';' before 'difference'
56 | Set difference = subtractSets(setA, setB);
| ^~~~~~~~~~~
| ;
0_0_39822196_8714.cpp:57:25: error: 'difference' was not declared in this scope
57 | for (int i = 0; i < difference.size; i++) {
| ^~~~~~~~~~
0_0_39822196_8714.cpp:58:9: error: 'printf' was not declared in this scope
58 | printf("%d ", difference.data[i]);
| ^~~~~~
0_0_39822196_8714.cpp:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
+++ |+#include <cstdio>
1 | include <cstdlib>
0_0_39822196_8714.cpp:60:5: error: 'printf' was not declared in this scope
60 | printf("\n");
| ^~~~~~
0_0_39822196_8714.cpp:60:5: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
0_0_39822196_8714.cpp:61:10: error: 'setA' was not declared in this scope
61 | free(setA.data);
| ^~~~
0_0_39822196_8714.cpp:61:5: error: 'free' was not declared in this scope
61 | free(setA.data);
| ^~~~
0_0_39822196_8714.cpp:1:1: note: 'free' is defined in header '<cstdlib>'; did you forget to '#include <cstdlib>'?
+++ |+#include <cstdlib>
1 | include <cstdlib>
0_0_39822196_8714.cpp:62:10: error: 'setB' was not declared in this scope
62 | free(setB.data);
| ^~~~
0_0_39822196_8714.cpp:63:10: error: 'difference' was not declared in this scope
63 | free(difference.data);
| ^~~~~~~~~~
|