Submission #00122
ソースコード
1 2 3 4 5 6 7 | int n,a,b,ans=0; cin >> n >> a >> b; for ( int i=0; i<n; i++){ ans=a^b; cout << ans << endl; } } |
ステータス
項目 | データ |
---|---|
問題 | 0007 - ^^ |
ユーザー名 | kamba |
投稿日時 | 2024-07-18 15:50:35 |
言語 | C++17 |
状態 | Compile Error |
得点 | 0 |
ソースコード長 | 108 Byte |
最大実行時間 | - |
最大メモリ使用量 |
コンパイルメッセージ
./Main.cpp:2:1: error: ‘cin’ does not name a type cin >> n >> a >> b; ^~~ ./Main.cpp:3:1: error: expected unqualified-id before ‘for’ for(int i=0; i<n; i++){ ^~~ ./Main.cpp:3:14: error: ‘i’ does not name a type for(int i=0; i<n; i++){ ^ ./Main.cpp:3:19: error: ‘i’ does not name a type for(int i=0; i<n; i++){ ^ ./Main.cpp:7:1: error: expected declaration before ‘}’ token } ^
セット
セット | 得点 | Cases |
---|
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|