#include <bits/stdc++.h>
using namespace std ;
typedef long long LL ;
int main(){
int arr[1000] = {0} ;
int k = 0 ;
string s ;
for (int i=0 ; i<20 ; i++){
cin >> s ;
for (int j=0 ; j<50 ; j++){
arr[k] = (int)(s[j]-'0') ;
k++ ;
}
}
long long int product = 1 , maxi = 0 ;
for (int i=0 ; i+12 < 1000 ; i++){
product = arr[i]*arr[i+1]*arr[i+2]*arr[i+3]*arr[i+4]*arr[i+5]*arr[i+6]*arr[i+7]*arr[i+8]*arr[i+9]*arr[i+10]*arr[i+11]*arr[i+12] ;
if (maxi < product){
maxi = product ;
}
}
cout << maxi << endl ;
return 0 ;
}
The code seems fine to me and I am getting 2091059712 output all the time which the problem is rejecting. Please can you find out the anomaly