1 2 3 4 5 6 7 8 9 10
#include <iostream.h> #include <array.h> using namespace std; int main() { array<int,5> myarray{ 1, 2, 3, 4, 5 }; cout << myarray.size(); return 0; }
1 2 3 4
Line 19: error: array.h: No such file or directory In function 'int main()': Line 7: error: 'array' was not declared in this scope compilation terminated due to -Wfatal-errors.