Submission #6970702


Source Code Expand

Copy
#include<bits/stdc++.h>
#define repeat(i,n) for(int i=0;i<n;i++)
using namespace std;

int main(){
  vector<int> abc(3);
  repeat(i,3);
  sort(abc.begin(),abc.end());
 
  int ans = abs[1];
  
  cout <<ans<< endl;
}

Submission Info

Submission Time
Task A - 高橋くんと年齢
User Nob2019
Language C++14 (GCC 5.4.1)
Score 0
Code Size 228 Byte
Status

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:10:18: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
   int ans = abs[1];
                  ^