結果
問題 |
No.256 桁の数字を入れ替え (2)
|
ユーザー |
|
提出日時 | 2016-10-30 10:12:04 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 125 bytes |
コンパイル時間 | 1,527 ms |
コンパイル使用メモリ | 168,248 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-24 23:33:04 |
合計ジャッジ時間 | 2,252 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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;);} | ^~~~ 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;);} | ~^~ 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;);} | ^
ソースコード
#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;);}