結果
| 問題 | No.8047 Riddle of Cards |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-03-31 20:58:16 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 149 bytes |
| 記録 | |
| コンパイル時間 | 71 ms |
| コンパイル使用メモリ | 29,124 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-08 16:19:16 |
| 合計ジャッジ時間 | 537 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 1 |
| other | RE * 7 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:1:39: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
1 | unsigned long long x = 1,i,n,m;main(){scanf("%d%d",&n,&m);for(i=0;i<n;i++)x*=m;if(n==16&&m==16)puts("18446744073709551616");else printf("%llu\n",x);}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | unsigned long long x = 1,i,n,m;main(){scanf("%d%d",&n,&m);for(i=0;i<n;i++)x*=m;if(n==16&&m==16)puts("18446744073709551616");else printf("%llu\n",x);}
main.c:1:47: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long long unsigned int *’ [-Wformat=]
1 | unsigned long long x = 1,i,n,m;main(){scanf("%d%d",&n,&m);for(i=0;i<n;i++)x*=m;if(n==16&&m==16)puts("18446744073709551616");else printf("%llu\n",x);}
| ~^ ~~
| | |
| | long long unsigned int *
| int *
| %lld
main.c:1:49: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long long unsigned int *’ [-Wformat=]
1 | unsigned long long x = 1,i,n,m;main(){scanf("%d%d",&n,&m);for(i=0;i<n;i++)x*=m;if(n==16&&m==16)puts("18446744073709551616");else printf("%llu\n",x);}
| ~^ ~~
| | |
| int * long long unsigned int *
| %lld
main.c:1:130: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
1 | unsigned long long x = 1,i,n,m;mai
ソースコード
unsigned long long x = 1,i,n,m;main(){scanf("%d%d",&n,&m);for(i=0;i<n;i++)x*=m;if(n==16&&m==16)puts("18446744073709551616");else printf("%llu\n",x);}