結果

問題 No.2400 Product of Gaussian Integer
ユーザー 👑 p-adicp-adic
提出日時 2023-08-04 21:27:03
言語 cLay
(20240104-1)
結果
CE  
実行時間 -
コード長 72 bytes
コンパイル時間 1,722 ms
コンパイル使用メモリ 162,796 KB
最終ジャッジ日時 2024-04-22 19:47:17
合計ジャッジ時間 2,093 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。

コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:54:20: warning: narrowing conversion of ‘A’ from ‘long long int’ to ‘double’ [-Wnarrowing]
   54 |   complex<double>X{A,B};
      |                    ^
main.cpp:54:22: warning: narrowing conversion of ‘B’ from ‘long long int’ to ‘double’ [-Wnarrowing]
   54 |   complex<double>X{A,B};
      |                      ^
main.cpp:55:3: error: ‘Y’ was not declared in this scope
   55 |   Y{C,D};
      |   ^
main.cpp:56:3: error: ‘Z’ was not declared in this scope
   56 |   Z=X*Y
      |   ^

ソースコード

diff #

ll@A,@B,@C,@D;
complex<double>X{A,B},Y{C,D},Z=X*Y
wt(Z.real(),Z.imag());
0