QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#101010#2928. Espresso!HuangHanShengCompile Error//C++98624b2023-04-28 23:42:482023-04-28 23:42:50

详细

answer.code:2:7: error: expected nested-name-specifier before ‘ll’
    2 | using ll = long long;
      |       ^~
answer.code:6:1: error: ‘ll’ does not name a type; did you mean ‘all’?
    6 | ll mod =1e9+7;
      | ^~
      | all
answer.code: In function ‘void solve()’:
answer.code:8:5: error: ‘ll’ was not declared in this scope; did you mean ‘all’?
    8 |     ll n,x,pos;cin>>n>>x>>pos;
      |     ^~
      |     all
answer.code:8:21: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
    8 |     ll n,x,pos;cin>>n>>x>>pos;
      |                     ^
      |                     yn
answer.code:8:24: error: ‘x’ was not declared in this scope
    8 |     ll n,x,pos;cin>>n>>x>>pos;
      |                        ^
answer.code:8:27: error: ‘pos’ was not declared in this scope; did you mean ‘pow’?
    8 |     ll n,x,pos;cin>>n>>x>>pos;
      |                           ^~~
      |                           pow
answer.code:10:7: error: expected ‘;’ before ‘res’
   10 |     ll res=1;
      |       ^~~~
      |       ;
answer.code:12:9: error: ‘res’ was not declared in this scope
   12 |         res=res*n%mod;
      |         ^~~
answer.code:12:19: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
   12 |         res=res*n%mod;
      |                   ^~~
      |                   modf
answer.code:16:11: error: ‘res’ was not declared in this scope
   16 |     cout<<res;
      |           ^~~
answer.code: In function ‘int main()’:
answer.code:20:5: error: ‘ll’ was not declared in this scope; did you mean ‘all’?
   20 |     ll n,s,cnt=0,temp;cin>>n>>s;temp=s;
      |     ^~
      |     all
answer.code:20:28: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
   20 |     ll n,s,cnt=0,temp;cin>>n>>s;temp=s;
      |                            ^
      |                            yn
answer.code:20:31: error: ‘s’ was not declared in this scope
   20 |     ll n,s,cnt=0,temp;cin>>n>>s;temp=s;
      |                               ^
answer.code:20:33: error: ‘temp’ was not declared in this scope; did you mean ‘tm’?
   20 |     ll n,s,cnt=0,temp;cin>>n>>s;temp=s;
      |                                 ^~~~
      |                                 tm
answer.code:25:23: error: ‘cnt’ was not declared in this scope; did you mean ‘int’?
   25 |         if(s<x)s=temp,cnt++;
      |                       ^~~
      |                       int
answer.code:28:11: error: ‘cnt’ was not declared in this scope; did you mean ‘int’?
   28 |     cout<<cnt<<'\n';
      |           ^~~
      |           int