0
0

paiza×Qiita記事投稿キャンペーン「プログラミング問題をやってみて書いたコードを投稿しよう!」
https://qiita.com/official-events/9ab96aa95d62fe3cbdd7

初心者向けDランク〜最難関Sランクまで全25問(すべて無料)
https://paiza.jp/pages/campaign/paiza-qiita

【殿堂入りキャンペーン】N倍の文字列 (paizaランク D 相当)
https://paiza.jp/works/mondai/d_rank_skillcheck_archive/square/edit?language_uid=rust

【殿堂入りキャンペーン】N倍の文字列 (paizaランク D 相当) C++(55)
https://qiita.com/kaizen_nagoya/items/5b9d56fd2bca32bd7dbf

ast.rs
#include <iostream>
using namespace std;
int main(int argc, char ** argv){
    // 自分の得意な言語で
    // Let's チャレンジ!!
    int i;
    cin >>i;
    for (i; i--;i <= 0){
    cout << "*";
    }
    cout<< endl;
    return 0;
}

あれ、C++のソースが残ってる。

コード実行結果: 実行結果ステータス compilation error
コンパイル時エラーメッセージ

error
error: expected one of `!` or `[`, found `include`
 --> Main.rs:1:2
  |
1 | #include <iostream>
  |  ^^^^^^^ expected one of `!` or `[`

error: aborting due to previous error

提出コードのアウトプット
期待する出力 ****

出てるのはRustのエラー。
途方に暮れて、明日やり直す。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0