记录详情

Compile Error

foo.cc:2:1: error: 'll' does not name a type
 ll powmod(ll a,ll b){
 ^~
foo.cc: In function 'int main()':
foo.cc:13:13: error: 'cin' was not declared in this scope
     int n,k;cin>>n>>k;
             ^~~
foo.cc:13:13: note: suggested alternative: 'main'
     int n,k;cin>>n>>k;
             ^~~
             main
foo.cc:19:57: error: 'mod' was not declared in this scope
                 dp[i][j*p] += dp[i-1][j], dp[i][j*p] %= mod;    
                                                         ^~~
foo.cc:19:57: note: suggested alternative: 'void'
                 dp[i][j*p] += dp[i-1][j], dp[i][j*p] %= mod;    
                                                         ^~~
                                                         void
foo.cc:21:5: error: 'll' was not declared in this scope
     ll ans = 9* (powmod(10,n-1) - powmod(9,n-1));
     ^~
foo.cc:22:29: error: 'ans' was not declared in this scope
     for(int i=1; i<=k; i++) ans+=dp[n][i];
                             ^~~
foo.cc:23:5: error: 'cout' was not declared in this scope
     cout<<ans%mod<<endl;
     ^~~~
foo.cc:23:11: error: 'ans' was not declared in this scope
     cout<<ans%mod<<endl;
           ^~~
foo.cc:23:15: error: 'mod' was not declared in this scope
     cout<<ans%mod<<endl;
               ^~~
foo.cc:23:15: note: suggested alternative: 'void'
     cout<<ans%mod<<endl;
               ^~~
               void
foo.cc:23:20: error: 'endl' was not declared in this scope
     cout<<ans%mod<<endl;
                    ^~~~
foo.cc:23:20: note: suggested alternative: 'enum'
     cout<<ans%mod<<endl;
                    ^~~~
                    enum
foo.cc:27:13: error: 'setw' was not declared in this scope
       cout<<setw(5)<<dp[i][j];
             ^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1281 数位之积
语言
C++
递交时间
2021-08-21 10:32:14
评测时间
2021-08-21 10:32:14
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes