运行 ID: 77546

Main.cc:31:34: warning: missing terminating " character
         cout << Invalid operator!";
                                  ^
Main.cc:31:34: error: missing terminating " character
         cout << Invalid operator!";
                                  ^~
Main.cc: In function ‘int main()’:
Main.cc:9:11: warning: comparison with string literal results in unspecified behavior [-Waddress]
     if(f=="+")
           ^~~
Main.cc:9:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Main.cc:13:16: warning: comparison with string literal results in unspecified behavior [-Waddress]
     else if(f=="-")
                ^~~
Main.cc:13:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Main.cc:17:16: warning: comparison with string literal results in unspecified behavior [-Waddress]
     else if(f=="*")
                ^~~
Main.cc:17:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Main.cc:21:16: warning: comparison with string literal results in unspecified behavior [-Waddress]
     else if(f=="/"&&b!=0)
                ^~~
Main.cc:21:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Main.cc:25:16: warning: comparison with string literal results in unspecified behavior [-Waddress]
     else if(f=="/"&&b==0)
                ^~~
Main.cc:25:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Main.cc:31:17: error: ‘Invalid’ was not declared in this scope
         cout << Invalid operator!";
                 ^~~~~~~