結果
| 問題 |
No.256 桁の数字を入れ替え (2)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-30 10:15:04 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 138 bytes |
| コンパイル時間 | 1,582 ms |
| コンパイル使用メモリ | 168,776 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-24 23:33:07 |
| 合計ジャッジ時間 | 2,094 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 2 RE * 2 |
コンパイルメッセージ
main.cpp:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | main(){int i;char c[1<<14];while(~scanf("%c",&c[i++]));for(std::sort(c,c+i);printf("%c",c[--i]),i;);printf("\n");}
| ^~~~
main.cpp: In function 'int main()':
main.cpp:2:50: warning: 'i' is used uninitialized [-Wuninitialized]
2 | main(){int i;char c[1<<14];while(~scanf("%c",&c[i++]));for(std::sort(c,c+i);printf("%c",c[--i]),i;);printf("\n");}
| ~^~
main.cpp:2:12: note: 'i' was declared here
2 | main(){int i;char c[1<<14];while(~scanf("%c",&c[i++]));for(std::sort(c,c+i);printf("%c",c[--i]),i;);printf("\n");}
| ^
ソースコード
#include<bits/stdc++.h>
main(){int i;char c[1<<14];while(~scanf("%c",&c[i++]));for(std::sort(c,c+i);printf("%c",c[--i]),i;);printf("\n");}