[ create a new paste ] login | about

Link: http://codepad.org/BkP123rs    [ raw code | output | fork ]

C++, pasted on Jun 25:
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; 
} 


Output:
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.


Create a new paste based on this one


Comments: