Language: C++

// ==UserScript==
// @name           AtCoderScoreHider
// @namespace  https://github.com/task4233
// @version        1.0.6
// @description  AtCoder(beta.atcoder.jp)の日本語、英語版の配点を全て隠します。
// @author         Mister task4233
// @grant           none
// @license         MIT
// @include         /^https?://beta\.atcoder\.jp\/contests\/*
// ==/UserScript==

// ---------------------------------------------------------------------------------------------
// 変更したい場合はここをいじってください
var display_score = '???';//            点数の代わりに置換される文字列
var problem_page = true;//           問題ページで表示するか否か
var top_page = true;//                  トップページで表示するか否か
var source_code_page = true;//    ソースコードページで表示するか否か
var submit_list_page = true;//       提出コード一覧ページで表示するか否か
// ---------------------------------------------------------------------------------------------

var i;

// 点数表示取得(問題ページ)
var problem_page_scores=document.querySelectorAll('#task-statement > span > span > p > var');
// 点数表示取得(トップページ)
var top_page_scores=document.querySelectorAll('.span4 > .table > tbody > tr > td');
// 点数表示取得(ソースコードページ)
var submit_page_scores=document.querySelectorAll('.panel > table > tbody > tr > td');
// 点数表示取得(提出コード一覧ページ)
var submit_list_page_scores=document.querySelectorAll('.table-responsive > table > tbody > tr > td');

if (problem_page && problem_page_scores.length>0){
  for(i=0;i<2;++i){
    problem_page_scores[i].innerText=display_score;
  }
}
if (top_page && top_page_scores.length > 0){
  for(i=1;i<top_page_scores.length;i+=2){
    top_page_scores[i].innerText = display_score;
  }
}
if (source_code_page && submit_page_scores.length > 0){
  submit_page_scores[4].innerText = display_score;
}

// エラー配列
var errors = ['WJ', 'RE', 'TLE', 'MLE', 'CE', 'OLE', 'QLE'];
// contains関数
let contains = (str) => {
  return (errors.indexOf(str) >= 0);
}

if (submit_list_page && submit_list_page_scores.length > 0){
  for(i=4;i<submit_list_page_scores.length; i+=10) {
     submit_list_page_scores[i].innerText = display_score;
    if(contains(submit_list_page_scores[i + 2].innerText)) {
       i -= 2;
    }
  }
}

Compiler output:
a.cc:14:23: warning: trigraph ??' ignored, use -trigraphs to enable [-Wtrigraphs]
   14 | var display_score = '???';//            点数の代わりに置換される文字列
a.cc:14:21: warning: multi-character character constant [-Wmultichar]
   14 | var display_score = '???';//            点数の代わりに置換される文字列
      |                     ^~~~~
a.cc:24:51: warning: multi-character literal with 39 characters exceeds 'int' size of 4 bytes
   24 | var problem_page_scores=document.querySelectorAll('#task-statement > span > span > p > var');
      |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:26:47: warning: multi-character literal with 33 characters exceeds 'int' size of 4 bytes
   26 | var top_page_scores=document.querySelectorAll('.span4 > .table > tbody > tr > td');
      |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:28:50: warning: multi-character literal with 32 characters exceeds 'int' size of 4 bytes
   28 | var submit_page_scores=document.querySelectorAll('.panel > table > tbody > tr > td');
      |                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:30:55: warning: multi-character literal with 43 characters exceeds 'int' size of 4 bytes
   30 | var submit_list_page_scores=document.querySelectorAll('.table-responsive > table > tbody > tr > td');
      |                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:47:15: warning: multi-character character constant [-Wmultichar]
   47 | var errors = ['WJ', 'RE', 'TLE', 'MLE', 'CE', 'OLE', 'QLE'];
      |               ^~~~
a.cc:47:21: warning: multi-character character constant [-Wmultichar]
   47 | var errors = ['WJ', 'RE', 'TLE', 'MLE', 'CE', 'OLE', 'QLE'];
      |                     ^~~~
a.cc:47:27: warning: multi-character character constant [-Wmultichar]
   47 | var errors = ['WJ', 'RE', 'TLE', 'MLE', 'CE', 'OLE', 'QLE'];
      |                           ^~~~~
a.cc:47:34: warning: multi-character character constant [-Wmultichar]
   47 | var errors = ['WJ', 'RE', 'TLE', 'MLE', 'CE', 'OLE', 'QLE'];
      |                                  ^~~~~
a.cc:47:41: warning: multi-character character constant [-Wmultichar]
   47 | var errors = ['WJ', 'RE', 'TLE', 'MLE', 'CE', 'OLE', 'QLE'];
      |                                         ^~~~
a.cc:47:47: warning: multi-character character constant [-Wmultichar]
   47 | var errors = ['WJ', 'RE', 'TLE', 'MLE', 'CE', 'OLE', 'QLE'];
      |                                               ^~~~~
a.cc:47:54: warning: multi-character character constant [-Wmultichar]
   47 | var errors = ['WJ', 'RE', 'TLE', 'MLE', 'CE', 'OLE', 'QLE'];
      |                                                      ^~~~~
a.cc:14:1: error: 'var' does not name a type
   14 | var display_score = '???';//            点数の代わりに置換される文字列
      | ^~~
a.cc:15:1: error: 'var' does not name a type
   15 | var problem_page = true;//           問題ページで表示するか否か
      | ^~~
a.cc:16:1: error: 'var' does not name a type
   16 | var top_page = true;//                  トップページで表示するか否か
      | ^~~
a.cc:17:1: error: 'var' does not name a type
   17 | var source_code_page = true;//    ソースコードページで表示するか否か
      | ^~~
a.cc:18:1: error: 'var' does not name a type
   18 | var submit_list_page = true;//       提出コード一覧ページで表示するか否か
      | ^~~
a.cc:21:1: error: 'var' does not name a type
   21 | var i;
      | ^~~
a.cc:24:1: error: 'var' does not name a type
   24 | var problem_page_scores=document.querySelectorAll('#task-statement > span > span > p > var');
      | ^~~
a.cc:26:1: error: 'var' does not name a type
   26 | var top_page_scores=document.querySelectorAll('.span4 > .table > tbody > tr > td');
      | ^~~
a.cc:28:1: error: 'var' does not name a type
   28 | var submit_page_scores=document.querySelectorAll('.panel > table > tbody > tr > td');
      | ^~~
a.cc:30:1: error: 'var' does not name a type
   30 | var submit_list_page_scores=document.querySelectorAll('.table-responsive > table > tbody > tr > td');
      | ^~~
a.cc:32:1: error: expected unqualified-id before 'if'
   32 | if (problem_page && problem_page_scores.length>0){
      | ^~
a.cc:37:1: error: expected unqualified-id before 'if'
   37 | if (top_page && top_page_scores.length > 0){
      | ^~
a.cc:42:1: error: expected unqualified-id before 'if'
   42 | if (source_code_page && submit_page_scores.length > 0){
      | ^~
a.cc:47:1: error: 'var' does not name a type
   47 | var errors = ['WJ', 'RE', 'TLE', 'MLE', 'CE', 'OLE', 'QLE'];
      | ^~~
a.cc:49:1: error: 'let' does not name a type
   49 | let contains = (str) => {
      | ^~~
a.cc:53:1: error: expected unqualified-id before 'if'
   53 | if (submit_list_page && submit_list_page_scores.length > 0){
      | ^~