Language: C++

cd "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/" && g++ atcoder.cpp -o atcoder && "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/"atcoder
kaedetoyokura@KaedenoMacBook-Air ~ % cd "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/" && g++ atcoder.cpp -o atcoder && "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/"atcoder
atcoder.cpp:32:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:50:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:58:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
3 warnings generated.
3
500 300 200
250
400
500
kaedetoyokura@KaedenoMacBook-Air AtCoder % cd "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/" && g++ atcoder.cpp -o atcoder && "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/"atcoder
atcoder.cpp:32:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:50:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:58:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
3 warnings generated.
3
500 300 200
200
250
375
kaedetoyokura@KaedenoMacBook-Air AtCoder % cd "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/" && g++ atcoder.cpp -o atcoder && "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/"atcoder
atcoder.cpp:32:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:50:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:58:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:187:15: error: expected ']'
      pr(v[n-1);
              ^
atcoder.cpp:187:11: note: to match this '['
      pr(v[n-1);
          ^
3 warnings and 1 error generated.
kaedetoyokura@KaedenoMacBook-Air AtCoder % 3
500 300 200cd "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/" && g++ atcoder.cpp -o atcoder && "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/"atcoder
zsh: command not found: 3
zsh: command not found: 500
kaedetoyokura@KaedenoMacBook-Air AtCoder % cd "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/" && g++ atcoder.cpp -o atcoder && "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/"atcoder
atcoder.cpp:32:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:50:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:58:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
3 warnings generated.
3
500 300 200
375
kaedetoyokura@KaedenoMacBook-Air AtCoder % cd "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/" && g++ atcoder.cpp -o atcoder && "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/"atcoder
atcoder.cpp:32:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:50:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:58:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
3 warnings generated.
2
3 4
3
kaedetoyokura@KaedenoMacBook-Air AtCoder % cd "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/" && g++ atcoder.cpp -o atcoder && "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/"atcoder
atcoder.cpp:32:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:50:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:58:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
3 warnings generated.
2
3 4
3.5
kaedetoyokura@KaedenoMacBook-Air AtCoder % cd "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/" && g++ atcoder.cpp -o atcoder && "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/"atcoder
atcoder.cpp:32:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:50:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:58:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
3 warnings generated.
10
kaedetoyokura@KaedenoMacBook-Air AtCoder % cd "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/" && g++ atcoder.cpp -o atcoder && "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/"atcoder
atcoder.cpp:32:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:50:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:58:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
3 warnings generated.
10
3
kaedetoyokura@KaedenoMacBook-Air AtCoder % cd "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/" && g++ atcoder.cpp -o atcoder && "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/"atcoder
atcoder.cpp:32:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:50:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:58:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
3 warnings generated.
50
2
kaedetoyokura@KaedenoMacBook-Air AtCoder % cd "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/" && g++ atcoder.cpp -o atcoder && "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/"atcoder
atcoder.cpp:32:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:50:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:58:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:185:9: error: no matching function for call to 'min'
        chmin(ans, x + y - 2);
        ^~~~~~~~~~~~~~~~~~~~~
atcoder.cpp:127:26: note: expanded from macro 'chmin'
#define chmin(x, y) (x = min(x, y))
                         ^~~
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:2560:1: note: candidate template
      ignored: deduced conflicting types for parameter '_Tp' ('int' vs. 'long long')
min(const _Tp& __a, const _Tp& __b)
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:2551:1: note: candidate function
      template not viable: requires 3 arguments, but 2 were provided
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
3 warnings and 1 error generated.
kaedetoyokura@KaedenoMacBook-Air AtCoder % cd "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/" && g++ atcoder.cpp -o atcoder && "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/"atcoder
atcoder.cpp:32:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:50:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:58:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
3 warnings generated.
10
0
kaedetoyokura@KaedenoMacBook-Air AtCoder % cd "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/" && g++ atcoder.cpp -o atcoder && "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/"atcoder
atcoder.cpp:32:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:50:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:58:35: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
3 warnings generated.
10
5
kaedetoyokura@KaedenoMacBook-Air AtCoder % 

Compiler output:
a.cc:2:14: error: stray '@' in program
    2 | kaedetoyokura@KaedenoMacBook-Air ~ % cd "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/" && g++ atcoder.cpp -o atcoder && "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/"atcoder
      |              ^
a.cc:18:14: error: stray '@' in program
   18 | kaedetoyokura@KaedenoMacBook-Air AtCoder % cd "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/" && g++ atcoder.cpp -o atcoder && "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/"atcoder
      |              ^
a.cc:34:14: error: stray '@' in program
   34 | kaedetoyokura@KaedenoMacBook-Air AtCoder % cd "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/" && g++ atcoder.cpp -o atcoder && "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/"atcoder
      |              ^
a.cc:51:14: error: stray '@' in program
   51 | kaedetoyokura@KaedenoMacBook-Air AtCoder % 3
      |              ^
a.cc:55:14: error: stray '@' in program
   55 | kaedetoyokura@KaedenoMacBook-Air AtCoder % cd "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/" && g++ atcoder.cpp -o atcoder && "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/"atcoder
      |              ^
a.cc:69:14: error: stray '@' in program
   69 | kaedetoyokura@KaedenoMacBook-Air AtCoder % cd "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/" && g++ atcoder.cpp -o atcoder && "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/"atcoder
      |              ^
a.cc:83:14: error: stray '@' in program
   83 | kaedetoyokura@KaedenoMacBook-Air AtCoder % cd "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/" && g++ atcoder.cpp -o atcoder && "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/"atcoder
      |              ^
a.cc:97:14: error: stray '@' in program
   97 | kaedetoyokura@KaedenoMacBook-Air AtCoder % cd "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/" && g++ atcoder.cpp -o atcoder && "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/"atcoder
      |              ^
a.cc:109:14: error: stray '@' in program
  109 | kaedetoyokura@KaedenoMacBook-Air AtCoder % cd "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/" && g++ atcoder.cpp -o atcoder && "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/"atcoder
      |              ^
a.cc:122:14: error: stray '@' in program
  122 | kaedetoyokura@KaedenoMacBook-Air AtCoder % cd "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/" && g++ atcoder.cpp -o atcoder && "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/"atcoder
      |              ^
a.cc:135:14: error: stray '@' in program
  135 | kaedetoyokura@KaedenoMacBook-Air AtCoder % cd "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/" && g++ atcoder.cpp -o atcoder && "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/"atcoder
      |              ^
a.cc:145:60: warning: multi-character character constant [-Wmultichar]
  145 | atcoder.cpp:185:9: error: no matching function for call to 'min'
      |                                                            ^~~~~
a.cc:148:47: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
  148 | atcoder.cpp:127:26: note: expanded from macro 'chmin'
      |                                               ^~~~~~~
a.cc:152:56: warning: multi-character character constant [-Wmultichar]
  152 |       ignored: deduced conflicting types for parameter '_Tp' ('int' vs. 'long long')
      |                                                        ^~~~~
a.cc:152:63: warning: multi-character character constant [-Wmultichar]
  152 |       ignored: deduced conflicting types for parameter '_Tp' ('int' vs. 'long long')
      |                                                               ^~~~~
a.cc:152:73: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
  152 |       ignored: deduced conflicting types for parameter '_Tp' ('int' vs. 'long long')
      |                                                                         ^~~~~~~~~~~
a.cc:160:14: error: stray '@' in program
  160 | kaedetoyokura@KaedenoMacBook-Air AtCoder % cd "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/" && g++ atcoder.cpp -o atcoder && "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/"atcoder
      |              ^
a.cc:173:14: error: stray '@' in program
  173 | kaedetoyokura@KaedenoMacBook-Air AtCoder % cd "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/" && g++ atcoder.cpp -o atcoder && "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/"atcoder
      |              ^
a.cc:186:14: error: stray '@' in program
  186 | kaedetoyokura@KaedenoMacBook-Air AtCoder %
      |              ^
a.cc:1:1: error: 'cd' does not name a type
    1 | cd "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/" && g++ atcoder.cpp -o atcoder && "/Users/kaedetoyokura/Library/Mobile Documents/com~apple~CloudDocs/AtCoder/"atcoder
      | ^~
a.cc:46:15: error: expected unqualified-id before '^' token
   46 |               ^
      |               ^
a.cc:49:11: error: expected unqualified-id before '^' token
   49 |           ^
      |           ^
a.cc:147:9: error: expected unqualified-id before '^' token
  147 |         ^~~~~~~~~~~~~~~~~~~~~
      |         ^