fork download
  1. #include <iostream>
  2. #include<vector>
  3. using namespace std;
  4. struct t {
  5. int a=5;
  6. }b[5];
  7.  
  8. int main() {
  9. //vector<t> b (5);
  10. //b[0]=new t();
  11. for(auto i:b) cout<<i.a<<endl;
  12. return 0;
  13. }
Success #stdin #stdout 0s 4292KB
stdin
Standard input is empty
stdout
5
5
5
5
5