Posts

problem

  #include <iostream> #include <string> #include <vector> using namespace std ; class tt { public: int * data ;     tt ( /* args */ );     ~tt ();     tt & operator= ( const tt & rhs ){         if ( this ==& rhs )         return * this ;       delete data ;             //for obj to obj like (jon = kevin) line number 46       data = new int ;       * data =* rhs . data ;       return * this ;     } tt & operator= ( tt && rhs ){       if ( this ==& rhs )       return * this ;       delete data ;               //for R value to pointer pointing to like line nuber 45 and 47       data = new int ;       * data =* rhs . data ;       rhs...

There were build errors. Would you like to continue and run the last successful build?

Image
if you can't see what's in this photos than hold ctrl button and scroll up your mouse scroller to zoom ; There were build errors. Would you like to continue and run the last successful build? warning notice : it going to reset your visual studio so some setting will be change so make sure you have breakup of your setting form json file 💀   if you don't care about that that it's fine 
#include <iostream> #include <vector> #include <stack> int calculate ( int a , int b , const std :: string & operation ) {     if ( operation == "+" )         return a + b ;     if ( operation == "-" )         return a - b ;     if ( operation == "*" )         return a * b ;     if ( operation == "/" )         return a / b ;     return - 1 ; } bool isOperation ( const std :: string & ope ) {     return ope == "+" || ope == "-" || ope == "*" || ope == "/" ; } int RPN ( std :: vector < std :: string > & notation ) {     std :: stack < int > numbers ;     for ( const auto & str : notation )     {         if ( isOperation ( str ))         {             int n2 ...

error: ld returned 1 exit status

``` error: ld returned 1 exit status ```     If your vs code editor showing you that error after run code than            Check your constructor first if you include constructor in class than you should also initialize them (no args constructor and destructor ) save your code before run keywords: error: ld returned 1 exit status , error: ld returned 1 exit status , collect2.exe: error: ld returned 1 exit status @glax3210