Source Code
#include <iostream>
using namespace std; 


int main() {
  int m;

 int n; 
 cin>> n; 
 int k[n]; 
 for(int i=0; i<n;i++){ 
   cin>> k[i]; 
 }
 for(int j=0; j<n;j++){ 

if(k[0]==k[j]){ m=j+1;}

 }

 cout<<m;
}
Copy
Good Segment LaYaN
GNU G++17
94 ms
1.7 MB
Wrong Answer