AtCoder Beginner Contest 003

Submission #1688068

Source codeソースコード

#include <iostream>

int main(){
int N;
std::cin >> N;
int sum;
double ans;
for(int i=1:i=N:i++){
sum+=10000×i;
}
ans=(double)sum/(double)N:
std::cout << ans << ″\n″;
}

Submission

Task問題 A - AtCoder社の給料
User nameユーザ名 kazu
Created time投稿日時
Language言語 C++14 (GCC 5.4.1)
Status状態 CE
Score得点 -
Source lengthソースコード長 185 Byte
File nameファイル名
Exec time実行時間 -
Memory usageメモリ使用量 -

Compiler messageコンパイルメッセージ

./Main.cpp:9:1: error: stray ‘\303’ in program
sum+=10000×i;
^
./Main.cpp:9:1: error: stray ‘\227’ in program
./Main.cpp:12:1: error: stray ‘\342’ in program
std::cout << ans << ″\n″;
^
./Main.cpp:12:1: error: stray ‘\200’ in program
./Main.cpp:12:1: error: stray ‘\263’ in program
./Main.cpp:12:1: error: stray ‘\’ in program
./Main.cpp:12:1: error: stray ‘\342’ in program
./Main.cpp:12:1: error: stray ‘\200’ in program
./Main.cpp:12:1: error: stray ‘\263’ in program
./Main.cpp: In function ‘int main()’:
./Main.cpp:8:10: error: initializer in range-based ‘for’ loop
for(int i=1:i=N:i++){
^
./Main.cpp:8:16: error: found ‘:’ in nested-name-specifier, expected ‘::’
for(int i=1:i=N:i++){
^
./Main.cpp:8:15: error: ‘N’ is not a class, namespace, or enumeration
for(int i=1:i=N:i++){
^
./Main.cpp:9:13: error: expected ‘;’ before ‘i’
sum+=10000×i;
^
./Main.cpp:11:26: error: found ‘:’ in nested-name-specifier, expected ‘::’
ans=(double)sum/(double)N:
...

Test case