Submission #345026
Source Code Expand
#include<iostream> #include<algorithm> using namespace std; int main(){ int x[3]; cin>>x[0]>>x[1]>>x[2]; x.sort(x.begin(),x.end()); cout<<x[1]<<endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - 高橋くんと年齢 |
User | R_HNF |
Language | C++ (G++ 4.6.4) |
Score | 0 |
Code Size | 182 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:7:5: error: request for member ‘sort’ in ‘x’, which is of non-class type ‘int [3]’ ./Main.cpp:7:12: error: request for member ‘begin’ in ‘x’, which is of non-class type ‘int [3]’ ./Main.cpp:7:22: error: request for member ‘end’ in ‘x’, which is of non-class type ‘int [3]’