fork(2) download
  1. #include <iostream>
  2. #include <vector>
  3. #include <string>
  4. using namespace std;
  5.  
  6. int main() {
  7. vector<string> data;
  8. int n;
  9. cin >> n;
  10. if (n == 2) {
  11. data = {"quick", "brown", "fox"};
  12. } else {
  13. data = {"jumps", "over", "the", "lazy", "dog"};
  14. }
  15. cout << data.size() << endl;
  16. return 0;
  17. }
Success #stdin #stdout 0s 3464KB
stdin
2
stdout
3