QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#566515#9313. Make Maxucup-team092#Compile Error//C++20896b2024-09-16 00:19:582024-09-16 00:19:58

詳細信息

answer.code:3:13: error: ‘ll’ does not name a type
    3 | #define int ll
      |             ^~
answer.code:4:7: note: in expansion of macro ‘int’
    4 | const int N=2e5+10;
      |       ^~~
answer.code:3:13: error: ‘ll’ does not name a type
    3 | #define int ll
      |             ^~
answer.code:5:1: note: in expansion of macro ‘int’
    5 | int n;
      | ^~~
answer.code:3:13: error: ‘ll’ does not name a type
    3 | #define int ll
      |             ^~
answer.code:6:1: note: in expansion of macro ‘int’
    6 | int a[N];
      | ^~~
answer.code:3:13: error: ‘ll’ does not name a type
    3 | #define int ll
      |             ^~
answer.code:7:1: note: in expansion of macro ‘int’
    7 | int l[N];
      | ^~~
answer.code:3:13: error: ‘ll’ does not name a type
    3 | #define int ll
      |             ^~
answer.code:8:1: note: in expansion of macro ‘int’
    8 | int r[N];
      | ^~~
answer.code: In function ‘void solve()’:
answer.code:10:10: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
   10 |     cin>>n;
      |          ^
      |          yn
answer.code:3:13: error: ‘ll’ was not declared in this scope
    3 | #define int ll
      |             ^~
answer.code:11:11: note: in expansion of macro ‘int’
   11 |     stack<int> c;
      |           ^~~
answer.code:11:14: error: template argument 1 is invalid
   11 |     stack<int> c;
      |              ^
answer.code:11:14: error: template argument 2 is invalid
answer.code:12:13: error: expected ‘;’ before ‘i’
   12 |     for(int i=1;i<=n;i++){
      |             ^
answer.code:12:17: error: ‘i’ was not declared in this scope
   12 |     for(int i=1;i<=n;i++){
      |                 ^
answer.code:13:14: error: ‘a’ was not declared in this scope
   13 |         cin>>a[i];
      |              ^
answer.code:15:13: error: expected ‘;’ before ‘i’
   15 |     for(int i=1;i<=n;i++){
      |             ^
answer.code:15:17: error: ‘i’ was not declared in this scope
   15 |     for(int i=1;i<=n;i++){
      |                 ^
answer.code:16:17: error: request for member ‘size’ in ‘c’, which is of non-class type ‘int’
   16 |         while(c.size()&&a[c.top()]<a[i]) c.pop();
      |                 ^~~~
answer.code:16:25: error: ‘a’ was not declared in this scope
   16 |         while(c.size()&&a[c.top()]<a[i]) c.pop();
      |                         ^
answer.code:16:29: error: request for member ‘top’ in ‘c’, which is of non-class type ‘int’
   16 |         while(c.size()&&a[c.top()]<a[i]) c.pop();
      |                             ^~~
answer.code:16:44: error: request for member ‘pop’ in ‘c’, which is of non-class type ‘int’
   16 |         while(c.size()&&a[c.top()]<a[i]) c.pop();
      |                                            ^~~
answer.code:17:14: error: request for member ‘size’ in ‘c’, which is of non-class type ‘int’
   17 |         if(c.size()){
      |              ^~~~
answer.code:18:13: error: ‘l’ was not declared in this scope
   18 |             l[i]=c.top()+1;
      |             ^
answer.code:18:20: error: request for member ‘top’ in ‘c’, which is of non-class type ‘int’
   18 |             l[i]=c.top()+1;
      |                    ^~~
answer.code:20:13: error: ‘l’ was not declared in this scope
   20 |             l[i]=1;
      |             ^
answer.code:22:11: error: request for member ‘push’ in ‘c’, which is of non-class type ‘int’
   22 |         c.push(i);
      |           ^~~~
answer.code:24:13: error: request for member ‘size’ in ‘c’, which is of non-class type ‘int’
   24 |     while(c.size()) c.pop();
      |             ^~~~
answer.code:24:23: error: request for member ‘pop’ in ‘c’, which is of non-class type ‘int’
   24 |     while(c.size()) c.pop();
      |                       ^~~
answer.code:25:13: error: expected ‘;’ before ‘i’
   25 |     for(int i=n;i>=1;i--){
      |             ^
answer.code:25:17: error: ‘i’ was not declared in this scope
   25 |     for(int i=n;i>=1;i--){
      |                 ^
answer.code:26:17: error: request for member ‘size’ in ‘c’, which is of non-class type ‘int’
   26 |         while(c.size()&&a[c.top()]<a[i]) c.pop();
      |                 ^~~~
answer.code:26:25: error: ‘a’ was not declared in this scope
   26 |         while(c.size()&&a[c.top()]<a[i]) c.pop();
      |                         ^
answer.code:26:29: error: request for member ‘top’ in ‘c’, which is of non-class type ‘int’
   26 |         while(c.size()&&a[c.top()]<a[i]) c.pop();
      |                             ^~~
answer.code:26:44: error: request for member ‘pop’ in ‘c’, which is of non-class type ‘int’
   26 |         while(c.size()&&a[c.top()]<a[i]) c.pop();
      |                                            ^~~
answer.code:27:14: error: request for member ‘size’ in ‘c’, which is of non-class type ‘int’
   27 |         if(c.size()){
      |              ^~~~
answer.code:28:13: error: ‘r’ was not declared in this scope
   28 |             r[i]=c.top()-1;
      |             ^
answer.code:28:20: error...