prog.cpp:1:2: error: stray ‘#’ in program
t#include<iostream>
^
prog.cpp:1:1: error: ‘t’ does not name a type
t#include<iostream>
^
In file included from /usr/include/c++/6/cmath:43:0,
from prog.cpp:2:
/usr/include/c++/6/ext/type_traits.h:162:35: error: ‘__gnu_cxx::__is_null_pointer’ declared as an ‘inline’ variable
__is_null_pointer(std::nullptr_t)
^
/usr/include/c++/6/ext/type_traits.h:162:35: error: ‘bool __gnu_cxx::__is_null_pointer’ redeclared as different kind of symbol
/usr/include/c++/6/ext/type_traits.h:157:5: note: previous declaration ‘template<class _Type> bool __gnu_cxx::__is_null_pointer(_Type)’
__is_null_pointer(_Type)
^~~~~~~~~~~~~~~~~
/usr/include/c++/6/ext/type_traits.h:162:21: error: ‘nullptr_t’ is not a member of ‘std’
__is_null_pointer(std::nullptr_t)
^~~
prog.cpp: In function ‘int main()’:
prog.cpp:14:5: error: ‘cin’ was not declared in this scope
cin >> n;
^~~
prog.cpp:18:45: error: ‘max’ was not declared in this scope
dp[l][0]=max(dp[l-1][0], dis(l-1, l));
^
prog.cpp:22:60: error: ‘min’ was not declared in this scope
dp[l][1]=min(dp[l][1], max(dp[l-2][0], dis(l-2, l)));
^
prog.cpp:24:5: error: ‘cout’ was not declared in this scope
cout << dp[n-1][1];
^~~~