Submission #00046


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include<iostream>
using namespace std;
int main(){
//蒼の彼方の
int Alice;
//フォーリズム!
cin >> Alice;
//しかしそれでもドロシーは。
int Dorothy = 1;
if(Alice == 0){ //Aliceが0!?
//Aliceが存在出来ていないからAlice。
cout << "0" << endl;
} else{ //どろどろどろしぃ!
//くるくる廻ろうくるくると。華麗に花弁散らすように。
for(int i=2;i<Alice;i++){
//てけり!
Drothy += i;
}
//ありすかわいい。
cout << Dorothy << endl;
}
//これで、終わりだ...。
return 0;
}

ステータス

項目 データ
問題 0002 - 目だけいいもりた
ユーザー名 【よさ】ハナヤマタ【こい】
投稿日時 2015-05-26 16:41:02
言語 C++11
状態 Compile Error
得点 0
ソースコード長 572 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

./46.cpp: In function 'int main()':
./46.cpp:17: error: 'Drothy' was not declared in this scope

セット

セット 得点 Cases

テストケース

ファイル名 状態 実行時間 メモリ使用量 #