fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int n[]={1,2,1,4,3,1};
  7. int s=sizeof(n)/sizeof(n[1]);
  8. cout<<s;
  9. return 0;
  10. }
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
6