fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. string n;
  6. int a=2;
  7. int s;
  8. int x=1;
  9. string arr[a];
  10. for(int i=0;i<1;i++){
  11. a=i;
  12.  
  13. cin>>n;
  14. arr[a]=n;
  15. if(arr[1]==arr[0]){
  16. x++;
  17. cout<<x;}
  18. }
  19.  
  20.  
  21. return 0;
  22. }
Success #stdin #stdout 0s 4348KB
stdin
00000



stdout
Standard output is empty