This is detecting errors in the code when compiled even if the compilation is successful. For example this code snippet still shows an error "expected ';' before '}'
include < iostream >
include < string >
using std::cout;
using std::cin;
using std::string;
int main()
{
string input1, input2;
cin>>input1>>input2;
cout<<input1+input2;
}
This is detecting errors in the code when compiled even if the compilation is successful. For example this code snippet still shows an error "expected ';' before '}'
include < iostream >
include < string >
using std::cout; using std::cin; using std::string; int main() { string input1, input2; cin>>input1>>input2; cout<<input1+input2; }