QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#472145#4925. Adjacent PairsZhaoZiLongCompile Error//C++14697b2024-07-11 14:43:322024-07-11 14:43:32

Details

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