Блог пользователя straw__hat

Автор straw__hat, история, 6 лет назад, По-английски

I can't understand from editorial or any of the comments.Thanks in advance.

Полный текст и комментарии »

  • Проголосовать: нравится
  • +2
  • Проголосовать: не нравится

Автор straw__hat, история, 6 лет назад, По-английски

This code gives runtime error.

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll maxc = 1e6+10;
ll bit[maxc];

ll n;

int main()
{
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ll a[maxc] , u[maxc] , q[maxc];
  //some stuff with the arrays
  return 0;
}

And this works fine.

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll maxc = 1e6+10;
ll bit[maxc];
ll a[maxc] , u[maxc] , q[maxc];

ll n;

int main()
{
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  //some stuff with the arrays
  return 0;
}

Can anyone tell me why??

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

Автор straw__hat, история, 6 лет назад, По-английски

I want to reuse it . How am I supposed to do it?

Полный текст и комментарии »

  • Проголосовать: нравится
  • +3
  • Проголосовать: не нравится