fork(1) download
  1. #include <iostream>
  2. #include <vector>
  3. #include <string>
  4. using namespace std;
  5.  
  6. int main() {
  7. vector<string> s(5);
  8. int j=3;
  9. s[j, 1] = 'a';
  10. cout << s[1] << " " << ((&s[j,1]==&s[1])?"SAME":"DIFFER");
  11. return 0;
  12. }
Success #stdin #stdout 0s 4308KB
stdin
Standard input is empty
stdout
a SAME