My issue
this logic seem fine and runs correct in online compiler but it does not give right output in codechef
My code
#include <iostream>
using namespace std;
int main() {
int i,count,arr[4];
for (i=0;i<4;i++)
{
cin >> arr[i];
if (arr[i]>=10){
count+=1;}
}
cout << count<< endl;
return 0;
}
Problem Link: PRACTICEPERF Problem - CodeChef