prosjek.cpp: In function 'int main()':
prosjek.cpp:23:6: error: 'ld' was not declared in this scope; did you mean 'll'?
23 | vec(ld) a;
| ^~
prosjek.cpp:10:25: note: in definition of macro 'vec'
10 | #define vec(...) vector<__VA_ARGS__>
| ^~~~~~~~~~~
prosjek.cpp:10:36: error: template argument 1 is invalid
10 | #define vec(...) vector<__VA_ARGS__>
| ^
prosjek.cpp:23:2: note: in expansion of macro 'vec'
23 | vec(ld) a;
| ^~~
prosjek.cpp:10:36: error: template argument 2 is invalid
10 | #define vec(...) vector<__VA_ARGS__>
| ^
prosjek.cpp:23:2: note: in expansion of macro 'vec'
23 | vec(ld) a;
| ^~~
prosjek.cpp:8:12: error: request for member 'push_back' in 'a', which is of non-class type 'int'
8 | #define pb push_back
| ^~~~~~~~~
prosjek.cpp:27:5: note: in expansion of macro 'pb'
27 | a.pb(v);
| ^~
prosjek.cpp:30:10: error: request for member 'begin' in 'a', which is of non-class type 'int'
30 | sort(a.begin(), a.end());
| ^~~~~
prosjek.cpp:30:21: error: request for member 'end' in 'a', which is of non-class type 'int'
30 | sort(a.begin(), a.end());
| ^~~
prosjek.cpp:31:5: error: expected ';' before 'v'
31 | ld v=(a[0]+a[1])/2.0;
| ^~
| ;
prosjek.cpp:32:5: error: request for member 'erase' in 'a', which is of non-class type 'int'
32 | a.erase(a.begin());
| ^~~~~
prosjek.cpp:32:13: error: request for member 'begin' in 'a', which is of non-class type 'int'
32 | a.erase(a.begin());
| ^~~~~
prosjek.cpp:33:5: error: request for member 'erase' in 'a', which is of non-class type 'int'
33 | a.erase(a.begin());
| ^~~~~
prosjek.cpp:33:13: error: request for member 'begin' in 'a', which is of non-class type 'int'
33 | a.erase(a.begin());
| ^~~~~
prosjek.cpp:8:12: error: request for member 'push_back' in 'a', which is of non-class type 'int'
8 | #define pb push_back
| ^~~~~~~~~
prosjek.cpp:34:5: note: in expansion of macro 'pb'
34 | a.pb(v);
| ^~
prosjek.cpp:34:8: error: 'v' was not declared in this scope
34 | a.pb(v);
| ^
prosjek.cpp:37:9: error: invalid types 'int[int]' for array subscript
37 | cout<<a[0]<<"\n";
| ^