fork download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. struct packet
  6. {
  7. int kind;
  8. };
  9.  
  10. packet pkt;
  11.  
  12. int main() {
  13. // your code goes here
  14. vector<packet> a[16][3];
  15.  
  16. pkt.kind=1;
  17. a[15][2].push_back(pkt);
  18.  
  19. pkt.kind=2;
  20. a[15][2].push_back(pkt);
  21.  
  22. pkt.kind=3;
  23. a[15][2].push_back(pkt);
  24.  
  25. pkt.kind=4;
  26. a[15][2].push_back(pkt);
  27.  
  28. cout<< a[15][2].size() << endl;
  29. return 0;
  30. }
Success #stdin #stdout 0s 3428KB
stdin
Standard input is empty
stdout
4