QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#472319#4928. Game With NumbersHuangHanShengCompile Error//C++14687b2024-07-11 15:39:342024-07-11 15:39:35

详细

answer.code:3:7: error: ‘ll’ does not name a type
    3 | const ll N=2e4+5,M=2e5+5;
      |       ^~
answer.code:3:7: note: the macro ‘ll’ had not yet been defined
answer.code:7: note: it was later defined here
    7 | #define ll long long
      | 
answer.code:6:13: error: ‘N’ was not declared in this scope
    6 | long long a[N],b[M];
      |             ^
answer.code:6:18: error: ‘M’ was not declared in this scope
    6 | long long a[N],b[M];
      |                  ^
answer.code: In function ‘long long int dfs(long int, std::vector<long long int>)’:
answer.code:19:36: error: ‘b’ was not declared in this scope
   19 |         for(ll i=0;i<t;i++)if(v[i]%b[x]==0) ans2.push_back(v[i]);else ans1.push_back(v[i]);
      |                                    ^
answer.code: In function ‘int main()’:
answer.code:27:35: error: ‘a’ was not declared in this scope
   27 |         for(ll i=1;i<=n;i++) cin>>a[i];
      |                                   ^
answer.code:28:35: error: ‘b’ was not declared in this scope
   28 |         for(ll i=1;i<=m;i++) cin>>b[i];
      |                                   ^
answer.code:29:43: error: ‘a’ was not declared in this scope
   29 |         for(ll i=1;i<=n;i++) aa.push_back(a[i]);
      |                                           ^