QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#472137#4925. Adjacent PairsGuanYunchangCompile Error//C++14627b2024-07-11 14:41:442024-07-11 14:41:45

Details

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;
      |                 ^