That's unlikely: assigning an integer to a
string
variable will give an error in every implementation of C++ I've used:
main.cpp:16:13: error: conversion from ‘int’ to non-scalar type ‘std::string’ {aka ‘std::__cxx11::basic_string’} requested
16 | string s1 = -1;
And that prevents your revised code from generating an EXE file and therefore from running at all...