QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#472137#4925. Adjacent PairsGuanYunchangCompile Error//C++14627b2024-07-11 14:41:442024-07-11 14:41:45

详细

answer.code: In function ‘int main()’:
answer.code:28:26: error: invalid operands of types ‘long long int*’ and ‘long long int’ to binary ‘operator&’
   28 |         scanf("%d %d",&n &m);
      |                       ~~ ^~
      |                       |   |
      |                       |   long long int
      |                       long long int*
answer.code:3:12: error: expected unqualified-id before ‘long’
    3 | #define ll long long
      |            ^~~~
answer.code:34:21: note: in expansion of macro ‘ll’
   34 |         vector<ll>v,ll s=0;
      |                     ^~
answer.code:40:17: error: ‘s’ was not declared in this scope
   40 |                 s+=x;
      |                 ^