QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#806334#9870. Itemsucup-team4125Compile Error//C++208.8kb2024-12-09 07:52:112024-12-09 07:52:11

Details

answer.code:28:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
   28 | main()
      | ^~~~
answer.code: In function ‘void solve(int)’:
answer.code:135:52: error: could not convert ‘{a, 1}’ from ‘<brace-enclosed initializer list>’ to ‘std::pair<std::vector<long long int>, int>’
  135 |     pair<vector<long long>,int>vres={{0},0},va={a,1};
      |                                                    ^
      |                                                    |
      |                                                    <brace-enclosed initializer list>