Language: C++


Skip to content
Using Gmail with screen readers
Conversations
	
	
	
Moto Care Service
	
Welcome to Moto Care!
 - Confirmation that you have enabled Advanced Support on your Motorola Device You [pranshpatwa1@gmail.com] have received this email because of a prior transaction or relationship with Motorola. Thank you
	 
	10:21 PM
	
	
	
Motorola
	
Your Motorola ID is set.
 - Thanks for setting up your Motorola ID You [pranshpatwa1@gmail.com] have received this email because of a prior transaction or relationship with Motorola. Welcome! Hello Pransh Patwa, Thanks for
	 
	10:20 PM
	
	
	
akash patil
	
GRID-1
 
Attachment:code2.cpp
	
	9:49 PM
	
	
	
Google
	
✅ Pransh, finish setting up your Motorola Moto G (2nd Gen) with the latest Google apps
 - Your new Motorola Moto G (2nd Gen) set up is almost complete. ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌
	 
	8:36 PM
	
	
	
Google
	
Security alert
 - New device signed in to pranshpatwa1@gmail.com Your Google Account was just signed in to from a new Motorola Moto G (2nd Gen) device. You're getting this email to make sure it was you. Check
	 
	8:35 PM
	
	
	
akash patil
	
LCS
 
Attachment:code8.cpp
	
	Nov 21
	
	
	
me
	
(no subject)
 - https://hangouts.google.com/call/m06aS45yFvx7-K4mEDUUAEEM
	 
	Nov 21
0.63 GB (4%) of 15 GB used
Manage
Terms · Privacy · Program Policies
Last account activity: 1 minute ago
Currently being used in 4 other locations · Details

#include <bits/stdc++.h>
using namespace std;
#define boost  ios_base::sync_with_stdio(0);
#define N 1000
#define ll long long int
#define pb push_back
#define f first
#define s second
#define fo(i,a,b) for(i = a; i < b; i++)
#define foe(i, a,b) for(i = a; i <= b; i++)
#define tc long long int t; cin >> t; while(t--)
#define vect vector <ll>
#define pll pair<ll,ll>
#define vpll vector<pair<ll,ll>>
#define be begin
#define en end
ll mod = 1e9+7;

int main(){
boost;
ll i;
ll n,m;
cin >> n >> m;
ll dp[n+1][m+1];
char x;
ll j;
for(i = 1; i <=n; i++){
for(j = 1; j <= m; j++){
  cin >> x;
if(x == '#'){
dp[i][j] = 0;
}
else{
dp[i][j] = -1;
}
}
}
dp[1][1]=1;
for(i = 2; i<= n; i++){
if(dp[i][1] != 0 && dp[i-1][1] != 0){
dp[i][1] = 1;
}
else dp[i][1]=0;
}
for(i = 2; i<= m; i++){
if(dp[1][i] != 0 && dp[1][i-1] != 0){
dp[1][i] = 1;}
else dp[1][i]=0;
}

for(i = 2; i <= n; i++){
for(j = 2; j <= m; j++){
if(dp[i][j] != 0){
dp[i][j] = (dp[i-1][j]%mod + dp[i][j-1]%mod)%mod;
}
}
}

/*for(int i=1;i<=n;i++)
{
  for(int j=1;j<=m;j++)
  cout<<dp[i][j]<<" ";
  cout<<"\n";
}*/

cout << dp[n][m]% mod;

return 0;
}

Compiler output:
a.cc:11:97: error: stray '@' in program
   11 |  - Confirmation that you have enabled Advanced Support on your Motorola Device You [pranshpatwa1@gmail.com] have received this email because of a prior transaction or relationship with Motorola. Thank you
      |                                                                                                 ^
a.cc:20:60: error: stray '@' in program
   20 |  - Thanks for setting up your Motorola ID You [pranshpatwa1@gmail.com] have received this email because of a prior transaction or relationship with Motorola. Welcome! Hello Pransh Patwa, Thanks for
      |                                                            ^
a.cc:38:1: error: extended character ✅ is not valid in an identifier
   38 | ✅ Pransh, finish setting up your Motorola Moto G (2nd Gen) with the latest Google apps
      | ^
a.cc:48:40: error: stray '@' in program
   48 |  - New device signed in to pranshpatwa1@gmail.com Your Google Account was just signed in to from a new Motorola Moto G (2nd Gen) device. You're getting this email to make sure it was you. Check
      |                                        ^
a.cc:48:141: warning: missing terminating ' character
   48 |  - New device signed in to pranshpatwa1@gmail.com Your Google Account was just signed in to from a new Motorola Moto G (2nd Gen) device. You're getting this email to make sure it was you. Check
      |                                                                                                                                             ^
a.cc:48:141: error: missing terminating ' character
   48 |  - New device signed in to pranshpatwa1@gmail.com Your Google Account was just signed in to from a new Motorola Moto G (2nd Gen) device. You're getting this email to make sure it was you. Check
      |                                                                                                                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:2:1: error: 'Skip' does not name a type
    2 | Skip to content
      | ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:62,
                 from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:76:
/usr/include/c++/14/ext/type_traits.h:164:35: error: 'constexpr const bool __gnu_cxx::__is_null_pointer' redeclared as different kind of entity
  164 |   __is_null_pointer(std::nullptr_t)
      |                                   ^
/usr/include/c++/14/ext/type_traits.h:159:5: note: previous declaration 'template<class _Type> constexpr bool __gnu_cxx::__is_null_pointer(_Type)'
  159 |     __is_null_pointer(_Type)
      |     ^~~~~~~~~~~~~~~~~
/usr/include/c++/14/ext/type_traits.h:164:26: error: 'nullptr_t' is not a member of 'std'; did you mean 'nullptr_t'?
  164 |   __is_null_pointer(std::nullptr_t)
      |                          ^~~~~~~~~
In file included from /usr/include/c++/14/cstddef:50,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41:
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:443:29: note: 'nullptr_t' declared here
  443 |   typedef decltype(nullptr) nullptr_t;
      |                             ^~~~~~~~~
In file included from /usr/include/c++/14/bits/stl_pair.h:60,
                 from /usr/include/c++/14/bits/stl_algobase.h:64:
/usr/include/c++/14/type_traits:666:33: error: 'nullptr_t' is not a member of 'std'; did you mean 'nullptr_t'?
  666 |     struct is_null_pointer<std::nullptr_t>
      |                                 ^~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:443:29: note: 'nullptr_t' declared here
  443 |   typedef decltype(nullptr) nullptr_t;
      |                             ^~~~~~~~~
/usr/include/c++/14/type_traits:666:42: error: template argument 1 is invalid
  666 |     struct is_null_pointer<std::nullptr_t>
      |                                          ^
/usr/include/c++/14/type_traits:670:48: error: template argument 1 is invalid
  670 |     struct is_null_pointer<const std::nullptr_t>
      |                                                ^
/usr/include/c++/14/type_traits:674:51: error: template argument 1 is invalid
  674 |     struct is_null_pointer<volatile std::nullptr_t>
      |                                                   ^
/usr/include/c++/14/type_traits:678:57: error: template argument 1 is invalid
  678 |     struct is_null_pointer<const volatile std::nullptr_t>
      |                                                         ^
/usr/include/c++/14/type_traits:1429:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
 1429 |     : public integral_constant<std::size_t, alignof(_Tp)>
      |                                     ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
  214 | typedef __SIZE_TYPE__ size_t;
      |                       ^~~~~~
/usr/include/c++/14/type_traits:1429:57: error: template argument 1 is invalid
 1429 |     : public integral_constant<std::size_t, alignof(_Tp)>
      |                                                         ^
/usr/include/c++/14/type_traits:1429:57: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1438:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
 1438 |     : public integral_constant<std::size_t, 0> { };
      |                                     ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
  214 | typedef __SIZE_TYPE__ size_t;
      |                       ^~~~~~
/usr/include/c++/14/type_traits:1438:46: error: template argument 1 is invalid
 1438 |     : public integral_constant<std::size_t, 0> { };
      |                                              ^
/usr/include/c++/14/type_traits:1438:46: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1440:26: error: 'std::size_t' has not been declared
 1440 |   template<typename _Tp, std::size_t _Size>
      |                          ^~~
/usr/include/c++/14/type_traits:1441:21: error: '_Size' was not declared in this scope
 1441 |     struct rank<_Tp[_Size]>
      |                     ^~~~~
/usr/include/c++/14/type_traits:1441:27: error: template argument 1 is invalid
 1441 |     struct rank<_Tp[_Size]>
      |                           ^
/usr/include/c++/14/type_traits:1442:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
 1442 |     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
      |                                     ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
  214 | typedef __SIZE_TYPE__ size_t;
      |                       ^~~~~~
/usr/include/c++/14/type_traits:1442:65: error: template argument 1 is invalid
 1442 |     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
      |                                                                 ^
/usr/include/c++/14/type_traits:1442:65: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1446:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
 1446 |     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
      |                                     ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
  214 | typedef __SIZE_TYPE__ size_t;
      |                       ^~~~~~
/usr/include/c++/14/type_traits:1446:65: error: template argument 1 is invalid
 1446 |     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
      |                                                                 ^
/usr/include/c++/14/type_traits:1446:65: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:2086:26: error: 'std::size_t' has not been declared
 2086 |   template<typename _Tp, std::size_t _Size>
      |                          ^~~
/usr/include/c++/14/type_traits:2087:30: error: '_Size' was not declared in this scope
 2087 |     struct remove_extent<_Tp[_Size]>
      |                              ^~~~~
/usr/include/c++/14/type_traits:2087:36: error: template argument 1 is invalid
 2087 |     struct remove_extent<_Tp[_Size]>
      |                                    ^
/usr/include/c++/14/type_traits:2099:26: error: 'std::size_t' has not been declared
 2099 |   template<typename _Tp, std::size_t _Size>
      |                          ^~~
/usr/include/c++/14/type_traits:2100:35: error: '_Size' was not declared in this scope
 2100 |     struct remove_all_extents<_Tp[_Size]>
      |                                   ^~~~~
/usr/include/c++/14/type_traits:2100:41: error: template argument 1 is invalid
 2100 |     struct remove_all_extents<_Tp[_Size]>
      |                                         ^
/usr/include/c++/14/type_traits:2171:12: error: 'std::size_t' has not been declared
 2171 |   template<std::size_t _Len>
      |            ^~~
/usr/include/c++/14/type_traits:2176:30: error: '_Len' was not declared in this scope; did you mean 'en'?
 2176 |         unsigned char __data[_Len];
      |                              ^~~~
      |                              en
/usr/include/c++/14/type_traits:2194:12: error: 'std::size_t' has not been declared
 2194 |   template<std::size_t _Len, std::size_t _Align =
      |            ^~~
/usr/include/c++/14/type_traits:2194:30: error: 'std::size_t' has not been declared
 2194 |   template<std::size_t _Len, std::size_t _Align =
      |                              ^~~
/usr/include/c++/14/type_traits:2195:55: error: '_Len' was not declared in this scope; did you mean 'en'?
 2195 |            __alignof__(typename __aligned_storage_msa<_Len>::__type)>
      |                                                       ^~~~
      |                                                       en
/usr/include/c++/14/type_traits:2195:59: error: template argument 1 is invalid
 2195 |            __alignof__(typename __aligned_storage_msa<_Len>::__type)>
      |                                                           ^
/usr/include/c++/14/type_traits:2202:30: error: '_Len' was not declared in this scope; did you m