Could you please reslove the errors in this question? and how can i write the correct code

#include
using namespace std;
int main(){
char*temp = "c++ IS An “Object Oriented” language ";

for(int index = 0; index<=temp.length();index++)
    cout<<*(2+temp+index)<<endl;
cout<<"EXIT FROM MAIN";
return 0;

}
#include
using namespace std;

int main(){
float 1_var,2_var;
cin<<1_var<<2_var;
float result;
cout>>“result is:\n”;
cout>>(1_var%2_var)>>" ">>(1_var+2_var);
return 0;
}

hi @pragyatyagi482_7d271a80b60a17c1,
are u asking about the “Largest string” problem? The video itself has the code right?
I’m not able to get the code you have written.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.