QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#592763#7332. DissertationMaMengQiCompile Error//C++98891b2024-09-27 03:07:172024-09-27 03:07:18

詳細信息

answer.code: In function ‘int main()’:
answer.code:16:25: error: ‘>>’ should be ‘> >’ within a nested template argument list
   16 |         vector<vector<ll>>nxt(n+1,vector<ll>(30,n));
      |                         ^~
      |                         > >
answer.code:18:9: error: ‘function’ was not declared in this scope
   18 |         function<ll(ll,ll)>solve=[&](ll i,ll j)->ll{
      |         ^~~~~~~~
answer.code:18:9: note: ‘std::function’ is only available from C++11 onwards
answer.code:2:12: error: expected primary-expression before ‘long’
    2 | #define ll long long
      |            ^~~~
answer.code:18:18: note: in expansion of macro ‘ll’
   18 |         function<ll(ll,ll)>solve=[&](ll i,ll j)->ll{
      |                  ^~
answer.code:24:15: error: ‘solve’ was not declared in this scope
   24 |         cout<<solve(0,0)<<nl;
      |               ^~~~~