Language: C++

Last login: Sun Mar 11 21:06:20 on ttys000
~ ❯❯❯ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc@5/5.5.0_2/libexec/gcc/x86_64-apple-darwin17.3.0/5.5.0/lto-wrapper
Target: x86_64-apple-darwin17.3.0
Configured with: ../configure --build=x86_64-apple-darwin17.3.0 --prefix=/usr/local/Cellar/gcc@5/5.5.0_2 --libdir=/usr/local/Cellar/gcc@5/5.5.0_2/lib/gcc/5 --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-5 --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-system-zlib --enable-libstdcxx-time=yes --enable-stage1-checking --enable-checking=release --enable-lto --enable-plugin --disable-werror --with-pkgversion='Homebrew GCC 5.5.0_2' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues --disable-nls --enable-multilib
Thread model: posix
gcc version 5.5.0 (Homebrew GCC 5.5.0_2) 
~ ❯❯❯ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc@5/5.5.0_2/libexec/gcc/x86_64-apple-darwin17.3.0/5.5.0/lto-wrapper
Target: x86_64-apple-darwin17.3.0
Configured with: ../configure --build=x86_64-apple-darwin17.3.0 --prefix=/usr/local/Cellar/gcc@5/5.5.0_2 --libdir=/usr/local/Cellar/gcc@5/5.5.0_2/lib/gcc/5 --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-5 --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-system-zlib --enable-libstdcxx-time=yes --enable-stage1-checking --enable-checking=release --enable-lto --enable-plugin --disable-werror --with-pkgversion='Homebrew GCC 5.5.0_2' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues --disable-nls --enable-multilib
Thread model: posix
gcc version 5.5.0 (Homebrew GCC 5.5.0_2) 
~ ❯❯❯ cd Work/Atcoder
~/W/Atcoder ❯❯❯ vim test.cpp
~/W/Atcoder ❯❯❯ g++ test.cpp
~/W/Atcoder ❯❯❯ ./a.out
Hello World!
~/W/Atcoder ❯❯❯ vim BC90_C.cpp
~/W/Atcoder ❯❯❯ g++ BC90_C.cpp
BC90_C.cpp:25:3: error: stray '\' in program
   print("%d\n",m\2);
   ^
BC90_C.cpp: In function 'int main()':
BC90_C.cpp:23:14: error: 'print' was not declared in this scope
   print("1\n");
              ^
BC90_C.cpp:25:18: error: expected ')' before numeric constant
   print("%d\n",m\2);
                  ^
BC90_C.cpp:25:19: error: 'print' was not declared in this scope
   print("%d\n",m\2);
                   ^
BC90_C.cpp:28:18: error: 'print' was not declared in this scope
  print("%d\n",n-2);
                  ^
~/W/Atcoder ❯❯❯ vim BC90_C.cpp                                                                                                                                ✘ 1 
~/W/Atcoder ❯❯❯ g++ BC90_C.cpp
BC90_C.cpp:25:3: error: stray '\' in program
   printf("%d\n",m\2);
   ^
BC90_C.cpp: In function 'int main()':
BC90_C.cpp:25:19: error: expected ')' before numeric constant
   printf("%d\n",m\2);
                   ^
BC90_C.cpp:28:18: error: 'print' was not declared in this scope
  print("%d\n",n-2);
                  ^
~/W/Atcoder ❯❯❯ vim BC90_C.cpp                                                                                                                                ✘ 1 
~/W/Atcoder ❯❯❯ g++ BC90_C.cpp
BC90_C.cpp:25:3: error: stray '\' in program
   printf("%d\n",m\2);
   ^
BC90_C.cpp: In function 'int main()':
BC90_C.cpp:25:19: error: expected ')' before numeric constant
   printf("%d\n",m\2);
                   ^
~/W/Atcoder ❯❯❯ vim BC90_C.cpp                                                                                                                                ✘ 1 
~/W/Atcoder ❯❯❯ g++ BC90_C.cpp
~/W/Atcoder ❯❯❯ ./a.out
1 7
5
~/W/Atcoder ❯❯❯ ./a.out
314 1592
499888
~/W/Atcoder ❯❯❯ g++ BC90_C.cpp
~/W/Atcoder ❯❯❯ vim BC90_C.cpp
~/W/Atcoder ❯❯❯ g++ BC90_C.cpp
~/W/Atcoder ❯❯❯ ./a.out
314 1592
496080
~/W/Atcoder ❯❯❯ vim BC90_C.cpp
~/W/Atcoder ❯❯❯ g++ BC90_C.cpp
~/W/Atcoder ❯❯❯ vim BC90_C.cpp
~/W/Atcoder ❯❯❯ g++ BC90_C.cpp
~/W/Atcoder ❯❯❯ vim BC90_C.cpp
~/W/Atcoder ❯❯❯ g++ BC90_C.cpp
~/W/Atcoder ❯❯❯ ./a.out
314 1592
496080
~/W/Atcoder ❯❯❯ ./a.out
1 7
-5
~/W/Atcoder ❯❯❯ vim BC90_C.cpp
~/W/Atcoder ❯❯❯ g++ BC90_C.cpp
~/W/Atcoder ❯❯❯ ./a.out
1 7
-5
~/W/Atcoder ❯❯❯ vim BC90_C.cpp
~/W/Atcoder ❯❯❯ g++ BC90_C.cpp
~/W/Atcoder ❯❯❯ ./a.out
1 7
5
~/W/Atcoder ❯❯❯ vim BC90_C.cpp
~/W/Atcoder ❯❯❯ vim BC90_C.cpp

#include <bits/stdc++.h>
  
int main(){
 long long int n,m;
 scanf("%lld%lld",&n,&m);

 if(n>2&&m>2){
        printf("%lld\n",(n-2)*(m-2));
 }else if(n==2){
        if(m>2){
                printf("%lld\n",2*(m-2));
        }else{
                printf ("0\n");
        }
 }else if(m==2){
        if(n>2){
                printf("%lld\n",2*(n-2));
        }else{
                printf ("0\n");
        }
 }else if(n==1){
        if(m==1){
                printf("1\n");
        }else{
                printf("%lld\n",m-2);
        }
 }else{
        printf("%lld\n",n-2);
 }
}


Compiler output:
a.cc:2:3: error: extended character ❯ is not valid in an identifier
    2 | ~ ❯❯❯ gcc -v
      |   ^
a.cc:2:3: error: extended character ❯ is not valid in an identifier
a.cc:2:3: error: extended character ❯ is not valid in an identifier
a.cc:5:42: error: stray '@' in program
    5 | COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc@5/5.5.0_2/libexec/gcc/x86_64-apple-darwin17.3.0/5.5.0/lto-wrapper
      |                                          ^
a.cc:5:45: error: too many decimal points in number
    5 | COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc@5/5.5.0_2/libexec/gcc/x86_64-apple-darwin17.3.0/5.5.0/lto-wrapper
      |                                             ^~~~~~~
a.cc:5:86: error: too many decimal points in number
    5 | COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc@5/5.5.0_2/libexec/gcc/x86_64-apple-darwin17.3.0/5.5.0/lto-wrapper
      |                                                                                      ^~~~
a.cc:5:91: error: too many decimal points in number
    5 | COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc@5/5.5.0_2/libexec/gcc/x86_64-apple-darwin17.3.0/5.5.0/lto-wrapper
      |                                                                                           ^~~~~
a.cc:6:30: error: too many decimal points in number
    6 | Target: x86_64-apple-darwin17.3.0
      |                              ^~~~
a.cc:7:60: error: too many decimal points in number
    7 | Configured with: ../configure --build=x86_64-apple-darwin17.3.0 --prefix=/usr/local/Cellar/gcc@5/5.5.0_2 --libdir=/usr/local/Cellar/gcc@5/5.5.0_2/lib/gcc/5 --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-5 --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-system-zlib --enable-libstdcxx-time=yes --enable-stage1-checking --enable-checking=release --enable-lto --enable-plugin --disable-werror --with-pkgversion='Homebrew GCC 5.5.0_2' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues --disable-nls --enable-multilib
      |                                                            ^~~~
a.cc:7:95: error: stray '@' in program
    7 | Configured with: ../configure --build=x86_64-apple-darwin17.3.0 --prefix=/usr/local/Cellar/gcc@5/5.5.0_2 --libdir=/usr/local/Cellar/gcc@5/5.5.0_2/lib/gcc/5 --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-5 --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-system-zlib --enable-libstdcxx-time=yes --enable-stage1-checking --enable-checking=release --enable-lto --enable-plugin --disable-werror --with-pkgversion='Homebrew GCC 5.5.0_2' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues --disable-nls --enable-multilib
      |                                                                                               ^
a.cc:7:98: error: too many decimal points in number
    7 | Configured with: ../configure --build=x86_64-apple-darwin17.3.0 --prefix=/usr/local/Cellar/gcc@5/5.5.0_2 --libdir=/usr/local/Cellar/gcc@5/5.5.0_2/lib/gcc/5 --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-5 --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-system-zlib --enable-libstdcxx-time=yes --enable-stage1-checking --enable-checking=release --enable-lto --enable-plugin --disable-werror --with-pkgversion='Homebrew GCC 5.5.0_2' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues --disable-nls --enable-multilib
      |                                                                                                  ^~~~~~~
a.cc:7:136: error: stray '@' in program
    7 | Configured with: ../configure --build=x86_64-apple-darwin17.3.0 --prefix=/usr/local/Cellar/gcc@5/5.5.0_2 --libdir=/usr/local/Cellar/gcc@5/5.5.0_2/lib/gcc/5 --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-5 --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-system-zlib --enable-libstdcxx-time=yes --enable-stage1-checking --enable-checking=release --enable-lto --enable-plugin --disable-werror --with-pkgversion='Homebrew GCC 5.5.0_2' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues --disable-nls --enable-multilib
      |                                                                                                                                        ^
a.cc:7:139: error: too many decimal points in number
    7 | Configured with: ../configure --build=x86_64-apple-darwin17.3.0 --prefix=/usr/local/Cellar/gcc@5/5.5.0_2 --libdir=/usr/local/Cellar/gcc@5/5.5.0_2/lib/gcc/5 --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-5 --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-system-zlib --enable-libstdcxx-time=yes --enable-stage1-checking --enable-checking=release --enable-lto --enable-plugin --disable-werror --with-pkgversion='Homebrew GCC 5.5.0_2' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues --disable-nls --enable-multilib
      |                                                                                                                                           ^~~~~~~
a.cc:7:480: warning: multi-character literal with 20 characters exceeds 'int' size of 4 bytes
    7 | Configured with: ../configure --build=x86_64-apple-darwin17.3.0 --prefix=/usr/local/Cellar/gcc@5/5.5.0_2 --libdir=/usr/local/Cellar/gcc@5/5.5.0_2/lib/gcc/5 --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-5 --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-system-zlib --enable-libstdcxx-time=yes --enable-stage1-checking --enable-checking=release --enable-lto --enable-plugin --disable-werror --with-pkgversion='Homebrew GCC 5.5.0_2' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues --disable-nls --enable-multilib
      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^~~~~~~~~~~~~~~~~~~~~~
a.cc:9:13: error: too many decimal points in number
    9 | gcc version 5.5.0 (Homebrew GCC 5.5.0_2)
      |             ^~~~~
a.cc:9:33: error: too many decimal points in number
    9 | gcc version 5.5.0 (Homebrew GCC 5.5.0_2)
      |                                 ^~~~~~~
a.cc:10:3: error: extended character ❯ is not valid in an identifier
   10 | ~ ❯❯❯ g++ -v
      |   ^
a.cc:10:3: error: extended character ❯ is not valid in an identifier
a.cc:10:3: error: extended character ❯ is not valid in an identifier
a.cc:13:42: error: stray '@' in program
   13 | COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc@5/5.5.0_2/libexec/gcc/x86_64-apple-darwin17.3.0/5.5.0/lto-wrapper
      |                                          ^
a.cc:13:45: error: too many decimal points in number
   13 | COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc@5/5.5.0_2/libexec/gcc/x86_64-apple-darwin17.3.0/5.5.0/lto-wrapper
      |                                             ^~~~~~~
a.cc:13:86: error: too many decimal points in number
   13 | COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc@5/5.5.0_2/libexec/gcc/x86_64-apple-darwin17.3.0/5.5.0/lto-wrapper
      |                                                                                      ^~~~
a.cc:13:91: error: too many decimal points in number
   13 | COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc@5/5.5.0_2/libexec/gcc/x86_64-apple-darwin17.3.0/5.5.0/lto-wrapper
      |                                                                                           ^~~~~
a.cc:14:30: error: too many decimal points in number
   14 | Target: x86_64-apple-darwin17.3.0
      |                              ^~~~
a.cc:15:60: error: too many decimal points in number
   15 | Configured with: ../configure --build=x86_64-apple-darwin17.3.0 --prefix=/usr/local/Cellar/gcc@5/5.5.0_2 --libdir=/usr/local/Cellar/gcc@5/5.5.0_2/lib/gcc/5 --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-5 --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-system-zlib --enable-libstdcxx-time=yes --enable-stage1-checking --enable-checking=release --enable-lto --enable-plugin --disable-werror --with-pkgversion='Homebrew GCC 5.5.0_2' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues --disable-nls --enable-multilib
      |                                                            ^~~~
a.cc:15:95: error: stray '@' in program
   15 | Configured with: ../configure --build=x86_64-apple-darwin17.3.0 --prefix=/usr/local/Cellar/gcc@5/5.5.0_2 --libdir=/usr/local/Cellar/gcc@5/5.5.0_2/lib/gcc/5 --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-5 --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-system-zlib --enable-libstdcxx-time=yes --enable-stage1-checking --enable-checking=release --enable-lto --enable-plugin --disable-werror --with-pkgversion='Homebrew GCC 5.5.0_2' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues --disable-nls --enable-multilib
      |                                                                                               ^
a.cc:15:98: error: too many decimal points in number
   15 | Configured with: ../configure --build=x86_64-apple-darwin17.3.0 --prefix=/usr/local/Cellar/gcc@5/5.5.0_2 --libdir=/usr/local/Cellar/gcc@5/5.5.0_2/lib/gcc/5 --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-5 --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-system-zlib --enable-libstdcxx-time=yes --enable-stage1-checking --enable-checking=release --enable-lto --enable-plugin --disable-werror --with-pkgversion='Homebrew GCC 5.5.0_2' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues --disable-nls --enable-multilib
      |