Submission #76498
ソースコード
ステータス
| 項目 |
データ |
| 問題 |
1422 - マージ |
| ユーザー名 |
ei2331
|
| 投稿日時 |
2023-09-29 17:05:44 |
| 言語 |
C++ |
| 状態 |
Compile Error |
| 得点 |
0
|
| ソースコード長 |
165 Byte |
| 最大実行時間 |
-
|
| 最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp: In function ‘int main()’:
./Main.cpp:2:22: error: expected ‘;’ before ‘)’ token
#define z for(i<n;i++)
^
./Main.cpp:3:67: note: in expansion of macro ‘z’
using namespace std;int main(){int n,m,a[1001],i=0;cin>>n>>m;n+=m;z{cin>>a[i];}sort(a,a+n);i=0;z{cout<<a[i]<<"\n";}}
^
./Main.cpp:2:22: error: expected ‘;’ before ‘)’ token
#define z for(i<n;i++)
^
./Main.cpp:3:96: note: in expansion of macro ‘z’
using namespace std;int main(){int n,m,a[1001],i=0;cin>>n>>m;n+=m;z{cin>>a[i];}sort(a,a+n);i=0;z{cout<<a[i]<<"\n";}}
^
セット
テストケース