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:31:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:49:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:57:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
3 warnings generated.
3 8 2
3
4
7
8
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:31:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:49:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:57:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:169:23: error: no matching function for call to 'max'
                ans = max(ans, ret);
                      ^~~
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:2633:1: note: 
      candidate template ignored: deduced conflicting types for
      parameter '_Tp' ('int' vs. 'long long')
max(const _Tp& __a, const _Tp& __b)
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:2624:1: note: 
      candidate function template not viable: requires 3 arguments, but
      2 were provided
max(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:31:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:49:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:57:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:171:23: error: no matching function for call to 'max'
                ans = max(ans, ret);
                      ^~~
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:2633:1: note: 
      candidate template ignored: deduced conflicting types for
      parameter '_Tp' ('int' vs. 'long long')
max(const _Tp& __a, const _Tp& __b)
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:2624:1: note: 
      candidate function template not viable: requires 3 arguments, but
      2 were provided
max(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:31:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:49:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:57:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:171:23: error: no matching function for call to 'max'
                ans = max(ans, ret);
                      ^~~
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:2633:1: note: 
      candidate template ignored: deduced conflicting types for
      parameter '_Tp' ('int' vs. 'long long')
max(const _Tp& __a, const _Tp& __b)
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:2624:1: note: 
      candidate function template not viable: requires 3 arguments, but
      2 were provided
max(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:31:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:49:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:57:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:171:23: error: no matching function for call to 'max'
                ans = max(ans, ret);
                      ^~~
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:2633:1: note: 
      candidate template ignored: deduced conflicting types for
      parameter '_Tp' ('int' vs. 'long long')
max(const _Tp& __a, const _Tp& __b)
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:2624:1: note: 
      candidate function template not viable: requires 3 arguments, but
      2 were provided
max(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:31:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:49:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:57:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
3 warnings generated.
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
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:31:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:49:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:57:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
3 warnings generated.
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
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:31:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:49:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:57:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:162:16: error: expected expression
    VAR(int, n), VAR(string, s);
               ^
atcoder.cpp:162:30: error: use of undeclared identifier 's'
    VAR(int, n), VAR(string, s);
                             ^
atcoder.cpp:172:27: error: use of undeclared identifier 's'
            rep(j, i) if (s[j] == c)
                          ^
atcoder.cpp:175:27: error: use of undeclared identifier 's'
            rep(j, i) if (s[j] == c)
                          ^
3 warnings and 4 errors 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:31:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:49:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:57:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
3 warnings generated.
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
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:31:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:49:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:57:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
3 warnings generated.
8 13
-3
-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:31:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:49:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
atcoder.cpp:57:35: warning: variadic templates are a C++11 extension
      [-Wc++11-extensions]
template <typename First, typename... Rest>
                                  ^
3 warnings generated.
8 13
2
2
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:21:14: error: stray '@' in program
   21 | 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:61: warning: multi-character character constant [-Wmultichar]
   34 | atcoder.cpp:169:23: error: no matching function for call to 'max'
      |                                                             ^~~~~
a.cc:39:17: warning: multi-character character constant [-Wmultichar]
   39 |       parameter '_Tp' ('int' vs. 'long long')
      |                 ^~~~~
a.cc:39:24: warning: multi-character character constant [-Wmultichar]
   39 |       parameter '_Tp' ('int' vs. 'long long')
      |                        ^~~~~
a.cc:39:34: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
   39 |       parameter '_Tp' ('int' vs. 'long long')
      |                                  ^~~~~~~~~~~
a.cc:48:14: error: stray '@' in program
   48 | 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:61:61: warning: multi-character character constant [-Wmultichar]
   61 | atcoder.cpp:171:23: error: no matching function for call to 'max'
      |                                                             ^~~~~
a.cc:66:17: warning: multi-character character constant [-Wmultichar]
   66 |       parameter '_Tp' ('int' vs. 'long long')
      |                 ^~~~~
a.cc:66:24: warning: multi-character character constant [-Wmultichar]
   66 |       parameter '_Tp' ('int' vs. 'long long')
      |                        ^~~~~
a.cc:66:34: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
   66 |       parameter '_Tp' ('int' vs. 'long long')
      |                                  ^~~~~~~~~~~
a.cc:75:14: error: stray '@' in program
   75 | 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:88:61: warning: multi-character character constant [-Wmultichar]
   88 | atcoder.cpp:171:23: error: no matching function for call to 'max'
      |                                                             ^~~~~
a.cc:93:17: warning: multi-character character constant [-Wmultichar]
   93 |       parameter '_Tp' ('int' vs. 'long long')
      |                 ^~~~~
a.cc:93:24: warning: multi-character character constant [-Wmultichar]
   93 |       parameter '_Tp' ('int' vs. 'long long')
      |                        ^~~~~
a.cc:93:34: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
   93 |       parameter '_Tp' ('int' vs. 'long long')
      |                                  ^~~~~~~~~~~
a.cc:102:14: error: stray '@' in program
  102 | 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:115:61: warning: multi-character character constant [-Wmultichar]
  115 | atcoder.cpp:171:23: error: no matching function for call to 'max'
      |                                                             ^~~~~
a.cc:120:17: warning: multi-character character constant [-Wmultichar]
  120 |       parameter '_Tp' ('int' vs. 'long long')
      |                 ^~~~~
a.cc:120:24: warning: multi-character character constant [-Wmultichar]
  120 |       parameter '_Tp' ('int' vs. 'long long')
      |                        ^~~~~
a.cc:120:34: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
  120 |       parameter '_Tp' ('int' vs. 'long long')
      |                                  ^~~~~~~~~~~
a.cc:129:14: error: stray '@' in program
  129 | 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:14: error: stray '@' in program
  145 | 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:161:14: error: stray '@' in program
  161 | 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:187:14: error: stray '@' in program
  187 | 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:203:14: error: stray '@' in program
  203 | 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:220:14: error: stray '@' in program
  220 | 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:237:14: error: stray '@' in program
  237 | 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:36:23: error: expected unqualified-id before '^' token
   36 |                       ^~~
      |                       ^
a.cc:63:23: error: expected unqualified-id before '^' token
   63 |                       ^~~
      |                       ^
a.cc:90:23: error: expected unqualified-id before '^' token
   90 |                       ^~~
      |                       ^
a.cc:117:23: error: expected unqualified-id before '^' token
  117 |                       ^~~
      |                       ^
a.cc:176:16: error: expected unqualified-id before '^' token
  176 |                ^
      |                ^
a.cc:179:30: error: expected unqualified-id before '^' token
  179 |                              ^
      |                              ^