結果
| 問題 | No.1130 Grid Numbers |
| ユーザー |
sorag
|
| 提出日時 | 2022-08-03 23:48:00 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 391 bytes |
| 記録 | |
| コンパイル時間 | 727 ms |
| コンパイル使用メモリ | 82,944 KB |
| 最終ジャッジ日時 | 2024-11-15 02:26:18 |
| 合計ジャッジ時間 | 1,140 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:15:9: error: 'sort' was not declared in this scope; did you mean 'short'?
15 | sort(a.begin(),a.end());
| ^~~~
| short
ソースコード
#include <iostream>
#include <vector>
#include <map>
#include<string>
#define ll long long
using namespace std;
int main() {
int h,w;
cin>>h>>w;
vector<int> a(h*w);
for(int i=0;i<h*w;i++){
cin>>a[i];
}
sort(a.begin(),a.end());
for(int i=0;i<h*w;i++){
cout<<a[i]<<' ';
if(i%w==w-1) cout<<endl;
}
return 0;
}
sorag