Language: C++

Last login: Sat Oct 26 19:51:15 on console
(base) MacBook-Air-3:~ kojimashohei$ /Users/kojimashohei cd /Users/kojimashohei/progcon/atcoder/cpp/abc/148/C.cpp 
-bash: /Users/kojimashohei: is a directory
(base) MacBook-Air-3:~ kojimashohei$ /Users/kojimashohei cd /Users/kojimashohei/progcon/atcoder/cpp/abc/148 
-bash: /Users/kojimashohei: is a directory
(base) MacBook-Air-3:~ kojimashohei$ pwd
/Users/kojimashohei
(base) MacBook-Air-3:~ kojimashohei$ cd progcon/atcoder/cpp/abc/148
(base) MacBook-Air-3:148 kojimashohei$ ls
A.cpp	B.cpp	C.cpp	D.cpp	E.cpp	a.out
(base) MacBook-Air-3:148 kojimashohei$ c++ C.cpp 
C.cpp:39:5: error: use of class template 'queue' requires template arguments
    queue que;
    ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/queue:214:28: note: 
      template is declared here
class _LIBCPP_TEMPLATE_VIS queue
                           ^
C.cpp:48:17: error: use of undeclared identifier 'sta'
                sta.push(i);
                ^
C.cpp:63:17: error: use of undeclared identifier 'sta'
                sta.push(i);
                ^
C.cpp:74:12: error: use of undeclared identifier 'sta'
    while(!sta.empty()){
           ^
C.cpp:75:16: error: use of undeclared identifier 'sta'
        ans *= sta.top() * r.at(sta.top());
               ^
C.cpp:75:33: error: use of undeclared identifier 'sta'
        ans *= sta.top() * r.at(sta.top());
                                ^
C.cpp:76:9: error: use of undeclared identifier 'sta'
        sta.pop();
        ^
7 errors generated.
(base) MacBook-Air-3:148 kojimashohei$ c++ C.cpp 
C.cpp:39:5: error: use of class template 'stack' requires template arguments
    stack sta;
    ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stack:113:28: note: 
      template is declared here
class _LIBCPP_TEMPLATE_VIS stack
                           ^
1 error generated.
(base) MacBook-Air-3:148 kojimashohei$ c++ --version
Apple clang version 11.0.0 (clang-1100.0.33.12)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
(base) MacBook-Air-3:148 kojimashohei$ c++ C.cpp 
C.cpp:39:5: error: use of undeclared identifier 'Stack'; did you mean 'stack'?
    Stack sta;
    ^~~~~
    stack
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stack:113:28: note: 
      'stack' declared here
class _LIBCPP_TEMPLATE_VIS stack
                           ^
C.cpp:39:5: error: unknown type name 'Stack'
    Stack sta;
    ^
2 errors generated.
(base) MacBook-Air-3:148 kojimashohei$ c++ C.cpp 
(base) MacBook-Air-3:148 kojimashohei$ ./a.out
2 3
0
(base) MacBook-Air-3:148 kojimashohei$ c++ C.cpp 
(base) MacBook-Air-3:148 kojimashohei$ ./a.out
2 3
320
(base) MacBook-Air-3:148 kojimashohei$ c++ C.cpp 
(base) MacBook-Air-3:148 kojimashohei$ ./a.out
2 3
3  0
2  1
0
(base) MacBook-Air-3:148 kojimashohei$ c++ C.cpp 
^[[A(base) MacBook-Air-3:148 kojimashohei$ ./a.out
2 3
3  1
2  1
6
(base) MacBook-Air-3:148 kojimashohei$ ./a.out
2 4
2  2
4
(base) MacBook-Air-3:148 kojimashohei$ ./a.out
2 8
2  3
6
(base) MacBook-Air-3:148 kojimashohei$ ./a.out
^C
(base) MacBook-Air-3:148 kojimashohei$ 
(base) MacBook-Air-3:148 kojimashohei$ c++ C.cpp 
^[[A(base) MacBook-Air-3:148 kojimashohei$ ./a.out
2 3
3  1
2  1
6
(base) MacBook-Air-3:148 kojimashohei$ ./a.out
2 8
2  3
8
(base) MacBook-Air-3:148 kojimashohei$ ./a.out
123 456
19  1
2  3
41  1
3  1
18696
(base) MacBook-Air-3:148 kojimashohei$ ./a.out
100000 99999
271  1
41  1
3  2
5  5
2  5
9999900000
(base) MacBook-Air-3:148 kojimashohei$ c++ C.cpp 
(base) MacBook-Air-3:148 kojimashohei$ ./a.out
100000 99999
9999900000
(base) MacBook-Air-3:148 kojimashohei$ 


Compiler output:
a.cc:12:42: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
   12 | C.cpp:39:5: error: use of class template 'queue' requires template arguments
      |                                          ^~~~~~~
a.cc:19:50: warning: multi-character character constant [-Wmultichar]
   19 | C.cpp:48:17: error: use of undeclared identifier 'sta'
      |                                                  ^~~~~
a.cc:22:50: warning: multi-character character constant [-Wmultichar]
   22 | C.cpp:63:17: error: use of undeclared identifier 'sta'
      |                                                  ^~~~~
a.cc:25:50: warning: multi-character character constant [-Wmultichar]
   25 | C.cpp:74:12: error: use of undeclared identifier 'sta'
      |                                                  ^~~~~
a.cc:28:50: warning: multi-character character constant [-Wmultichar]
   28 | C.cpp:75:16: error: use of undeclared identifier 'sta'
      |                                                  ^~~~~
a.cc:31:50: warning: multi-character character constant [-Wmultichar]
   31 | C.cpp:75:33: error: use of undeclared identifier 'sta'
      |                                                  ^~~~~
a.cc:34:49: warning: multi-character character constant [-Wmultichar]
   34 | C.cpp:76:9: error: use of undeclared identifier 'sta'
      |                                                 ^~~~~
a.cc:39:42: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
   39 | C.cpp:39:5: error: use of class template 'stack' requires template arguments
      |                                          ^~~~~~~
a.cc:48:21: error: too many decimal points in number
   48 | Apple clang version 11.0.0 (clang-1100.0.33.12)
      |                     ^~~~~~
a.cc:48:35: error: too many decimal points in number
   48 | Apple clang version 11.0.0 (clang-1100.0.33.12)
      |                                   ^~~~~~~~~~~~
a.cc:49:30: error: too many decimal points in number
   49 | Target: x86_64-apple-darwin18.7.0
      |                              ^~~~
a.cc:53:49: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
   53 | C.cpp:39:5: error: use of undeclared identifier 'Stack'; did you mean 'stack'?
      |                                                 ^~~~~~~
a.cc:53:71: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
   53 | C.cpp:39:5: error: use of undeclared identifier 'Stack'; did you mean 'stack'?
      |                                                                       ^~~~~~~
a.cc:58:7: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
   58 |       'stack' declared here
      |       ^~~~~~~
a.cc:61:38: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
   61 | C.cpp:39:5: error: unknown type name 'Stack'
      |                                      ^~~~~~~
a.cc:1:1: error: 'Last' does not name a type
    1 | Last login: Sat Oct 26 19:51:15 on console
      | ^~~~
a.cc:14:5: error: expected unqualified-id before '^' token
   14 |     ^
      |     ^
a.cc:21:17: error: expected unqualified-id before '^' token
   21 |                 ^
      |                 ^
a.cc:24:17: error: expected unqualified-id before '^' token
   24 |                 ^
      |                 ^