Submission #1167099

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
11670992025-03-15 08:53:598pete8Game (IOI13_game)C++20
Compilation error
0 ms0 KiB
#include "game.h"
#include<iostream>
#include<stack>
#include<map>
#include<vector>
#include<string>
#include<cassert>
#include<unordered_map>
#include <queue>
#include <cstdint>
#include<cstring>
#include<limits.h>
#include<cmath>
#include<set>
#include<algorithm>
#include <iomanip>
#include<numeric>
#include<bitset>
#include <chrono>
#include<random>
using namespace std;
#define ll long long
#define f first
#define s second
#define pii pair<int,int>
#define ppii pair<int,pii>
#define vi vector<int>
#define pb push_back
#define all(x) x.begin(),x.end()
#define rall(x) x.rbegin(),x.rend()
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

game.cpp:35:40: warning: bad option '-funroll-lopps' to pragma 'optimize' [-Wpragmas]
   35 | #pragma GCC optimize ("03,unroll-lopps")
      |                                        ^
game.cpp:39:40: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
   39 | long long gcd2(long long X, long long Y) {
      |                                        ^
game.cpp:53:27: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
   53 |     node(int x,int y,int z):l(0),r(0),p(rng()),row(x),col(y),val(z),G(z){};
      |                           ^
game.cpp:57:21: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
   57 |     int get(node *&a){
      |                     ^
game.cpp:61:23: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
   61 |     void pull(node *&x){
      |                       ^
game.cpp:65:59: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
   65 |     void split(node *&L,node *&R,node *cur,int row,int col){
      |                                                           ^
game.cpp:78:42: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
   78 |     void merge(node *a,node *b,node *&cur){
      |                                          ^
game.cpp:85:45: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
   85 |     bool change(node *&cur,int x,int y,int z){
      |                                             ^
game.cpp:105:31: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
  105 | void init(int32_t R, int32_t C){
      |                               ^
game.cpp:108:50: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
  108 | void upd(int id,int32_t P, int32_t Q, long long K){
      |                                                  ^
game.cpp: In function 'void upd(long long int, int32_t, int32_t, long long int)':
game.cpp:110:8: error: 'row' was not declared in this scope; did you mean 'pow'?
  110 |     if(row[id].root==NULL)row[id].root=x;
      |        ^~~
      |        pow
game.cpp: At global scope:
game.cpp:119:26: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
  119 | int get(int x,int U,int V){
      |                          ^
game.cpp: In function 'long long int get(long long int, long long int, long long int)':
game.cpp:121:8: error: 'row' was not declared in this scope; did you mean 'pow'?
  121 |     if(row[x].root==NULL)return 0;
      |        ^~~
      |        pow
game.cpp:122:5: error: 'row' was not declared in this scope; did you mean 'pow'?
  122 |     row[x].split(L,row[x].root,row[x].root,inf,U-1);
      |     ^~~
      |     pow
game.cpp: At global scope:
game.cpp:129:55: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
  129 | void updateseg(int qx,int qy,int x,int pos,int l,int r){
      |                                                       ^
game.cpp:145:63: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
  145 | int qryseg(int qlx,int qrx,int qly,int qry,int pos,int l,int r){
      |                                                               ^
game.cpp:153:38: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
  153 | void update(int32_t P,int32_t Q,int x){
      |                                      ^
game.cpp:158:63: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
  158 | long long calculate(int32_t P, int32_t Q, int32_t U, int32_t V){
      |                                                               ^