AtCoder Beginner Contest 009

Submission #1678852

Source codeソースコード

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin >> N;
  int highest = 0, second = 0;
  int temp;
  for (int i = 0; i < N; ++i){
    cin >> temp;
    if (temp => highest) highest = temp;
    if (temp < highest && temp => second) second = temp;
  }
  cout >> second >> endl;
  return 0;
}

Submission

Task問題 B - 心配性な富豪、ファミリーレストランに行く。
User nameユーザ名 aximov
Created time投稿日時
Language言語 C++14 (GCC 5.4.1)
Status状態 CE
Score得点 -
Source lengthソースコード長 325 Byte
File nameファイル名
Exec time実行時間 -
Memory usageメモリ使用量 -

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

./Main.cpp: In function ‘int main()’:
./Main.cpp:10:15: error: expected primary-expression before ‘>’ token
if (temp => highest) highest = temp;
^
./Main.cpp:11:33: error: expected primary-expression before ‘>’ token
if (temp < highest && temp => second) second = temp;
^
./Main.cpp:13:8: error: no match for ‘operator>>’ (operand types are ‘std::ostream {aka std::basic_ostream<char>}’ and ‘int’)
cout >> second >> endl;
^
./Main.cpp:13:8: note: candidate: operator>>(int, int) <built-in>
./Main.cpp:13:8: note: no known conversion for argument 1 from ‘std::ostream {aka std::basic_ostream<char>}’ to ‘int’
In file included from /usr/include/c++/5/string:53:0,
from /usr/include/c++/5/bits/locale_classes.h:40,
from /usr/include/c++/5/bits/ios_base.h:41,
from /usr/include/c++/5/ios:42,
from /usr/include/c++/5/istream:38,
from /usr/include/c++/5/sstream:38,
...

Test case