QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#471719#3098. Ancient Machineegypt_ioi2024_12Compile Error//C++202.5kb2024-07-11 05:37:172024-07-11 05:37:17

詳細信息

Anna.code:4:1: error: ‘ll’ does not name a type
    4 | ll dp[63][2][2];
      | ^~
Anna.code:5:1: error: ‘ll’ does not name a type
    5 | ll v=0;
      | ^~
Anna.code:6:1: error: ‘ll’ does not name a type
    6 | ll solve(int i,int j,int k){
      | ^~
Anna.code: In function ‘void Anna(int, std::vector<char>)’:
Anna.code:25:9: error: ‘last’ was not declared in this scope
   25 |         last=i+63;
      |         ^~~~
Anna.code:26:9: error: ‘v’ was not declared in this scope
   26 |         v=0;
      |         ^
Anna.code:30:16: error: ‘dp’ was not declared in this scope
   30 |         memset(dp,-1,sizeof(dp));
      |                ^~
Anna.code:31:9: error: ‘ll’ was not declared in this scope
   31 |         ll p=solve(0,0,0);
      |         ^~
Anna.code:32:15: error: expected ‘;’ before ‘bit’
   32 |         for(ll bit=0;bit<=43;bit++){
      |               ^~~~
      |               ;
Anna.code:32:22: error: ‘bit’ was not declared in this scope
   32 |         for(ll bit=0;bit<=43;bit++){
      |                      ^~~
Anna.code:33:27: error: ‘p’ was not declared in this scope
   33 |             if((1LL<<bit)&p)Send(1),p^=(1LL<<bit);
      |                           ^
In file included from /usr/include/c++/10/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
                 from Anna.code:1:
Anna.code:36:17: error: ‘p’ was not declared in this scope
   36 |         assert(!p);
      |                 ^