結果

問題 No.2607 Add One Digit
ユーザー 👑 p-adicp-adic
提出日時 2024-01-19 21:23:24
言語 cLay
(20240104-1)
結果
CE  
実行時間 -
コード長 124 bytes
コンパイル時間 2,705 ms
コンパイル使用メモリ 169,544 KB
最終ジャッジ日時 2024-01-19 21:23:29
合計ジャッジ時間 3,105 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。

コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:233:7: error: call of overloaded ‘wt_L(std::set<long long int>::size_type)’ is ambiguous
  233 |   wt_L(S.size());
      |   ~~~~^~~~~~~~~~
main.cpp:73:13: note: candidate: ‘void wt_L(char)’
   73 | inline void wt_L(char a){
      |             ^~~~
main.cpp:76:13: note: candidate: ‘void wt_L(int)’
   76 | inline void wt_L(int x){
      |             ^~~~
main.cpp:98:13: note: candidate: ‘void wt_L(unsigned int)’
   98 | inline void wt_L(unsigned x){
      |             ^~~~
main.cpp:112:13: note: candidate: ‘void wt_L(long long int)’
  112 | inline void wt_L(long long x){
      |             ^~~~
main.cpp:134:13: note: candidate: ‘void wt_L(long long unsigned int)’
  134 | inline void wt_L(unsigned long long x){
      |             ^~~~
main.cpp:155:13: note: candidate: ‘void wt_L(double)’
  155 | inline void wt_L(double x){
      |             ^~~~

ソースコード

diff #

string@N;set<ll>S;REP(i,N.size()+1)REP(d,0,10)S.insert(stoll(N.substr(0,i)+to_string(d)+N.substr(i,N.size())));wt(S.size());
0