Exercise help raindrops c++

so i got an error as follows glad if anyone could help:
h
the code is as follows:
‘’‘’
#include “raindrops.h”
#include
namespace raindrops {
std::string convert(int a){
std::string b=“the_sound_for_”+std::to_string(a)+“is”;
int i=0;
int o,tw,th;
o=0;th=0;tw=0;
if(a==8)
return “2_to_the_power_3_does_not_make_a_raindrop_sound_as_3_is_the_exponent_not_the_base”;
if(a%3==0){
i+=1;
b+=“Pling”;
o+=1;
}
if(a%5==0){
i+=1;
b+=“Plang”;
tw+=1;
}
if(a%7==0){
i+=1;
b+=“Plong”;
th+=1;
}
if(i==0)
return b+std::to_string(a);
if(i==1){
if(o==1)
return b+“_as_it_has_factor_of_3”;
if(tw==1)
return b+“_as_it_has_factor_of_5”;
if(th==1)
return b+“_as_it_has_factor_of_7”;
}
if(i==2){
if(o==1 and th==1)
return b+“_as_it_has_factors_of_3_and_5”;
if(o==1 and tw==1)
return b+“_as_it_has_factors_of_3_and_7”;
if(tw==1 and th==1)
return b+“_as_it_has_factors_of_5_and_7”;
}
if(i==3)
return b+“_as_it_has_factors_3_5_and_7”;
else
return “vnadjnfqafkoahflkha”;
}
// TODO: add your solution here
} // namespace raindrops’‘’


the error is here

the continuity of the code

Your code is only supposed to return a combination of Pling Plang Plong. No other strings should be in your code return.

Please don’t use images to share text!

i’ve rewritten the code still there is an error of similar kind the code works in online compiler
#include “raindrops.h”
#include
namespace raindrops {
std::string convert(int a){
std::string b=“”;
int i=0;
if(a%3==0){
i+=1;
b+=“Pling”;
}
if(a%5==0){
i+=1;
b+=“Plang”;
}
if(a%7==0){
i+=1;
b+=“Plong”;
}
if(b==“”)
b=std::to_string(a);
return b;
}
// TODO: add your solution here
} // namespace raindrops
Screenshot_2025-03-04_22-08-16