Language: C++

#coding : utf-8

# version 1.0 2017/02/10  ??????????????¨???????????????
# version 1.1 2017/02/11???????????????????°????????????????????????¶??§??????
# version 1.2 2017/02/11???AOJ??????????????°??????
# version 1.3 2017/02/12  ?§£????????????????????????????????¨?????§?????????????????????

import requests,sys
import time
from selenium import webdriver
from bs4 import BeautifulSoup
import xerox

def main():
    print("Hello! This is The AOJ Chaser!")
    user_url='http://judge.u-aizu.ac.jp/onlinejudge/webservice/user'
    problem_url='http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id='

    # ????´¢?????????id?????\???
    rival_id='minaminao'
    my_id='oshibori'
    my_password='1225tomoki'
    if not my_id :
        print('Input your id!', end=' ')
        my_id=input()
    if not my_password :
        print('Input your password!', end=' ')
        my_password=input()
    if not rival_id :
        print('Input your rival\'s id!', end=' ')
        rival_id=input()



    # ??????????????????
    myparams={'id':my_id}                   #  ME
    mydata=requests.get(user_url,params=myparams)
    rivalparams={'id':rival_id}               #  RIVAL
    rivaldata=requests.get(user_url,params=rivalparams)

    # ??????????????????
    mysoup=BeautifulSoup(mydata.text,"html.parser")
    rivalsoup=BeautifulSoup(rivaldata.text,"html.parser")
    table={}
    cnt=0
    result_list=[]
    for i in mysoup.findAll('problem'):
        table[int(i.id.string)]=1;

    for i in rivalsoup.findAll('problem'):
        x=int(i.id.string)
        try:
            table[x]=table[x]-1
        except:
            print(x)

            result_list.append([int(i.judge_id.string),i.id.string])
            cnt=cnt+1


    print('')

    result_list.sort(key=lambda x:x[0])
    #result_list.sort(key=lambda x:x[1])
    #for i in result_list:
    #    print(i[1])
    print('Sum is ',end='')
    print(cnt)

    index=0
    while True:
        #??????????????¶?????????
        browser=webdriver.Chrome('./chromedriver')
        #?????????????????¨?§?
        browser.get(problem_url + result_list[index][1])
        # ?????°??????
        loginform=browser.find_element_by_id('user')
        loginform.find_element_by_id('login').click()

        loginUserID=loginform.find_element_by_name('loginUserID')
        loginPassword=loginform.find_element_by_name('loginPassword')

        loginUserID.send_keys(my_id)
        loginPassword.send_keys(my_password)

        logininput=loginform.find_element_by_id('logininput')
        logininput.submit()
        index=index+1

        #???????????????
        submit_url='http://judge.u-aizu.ac.jp/onlinejudge/status.jsp#submit/'+ result_list[index][1]
        if browser.current_url == submit_url:
            submit_area=browser.find_element_by_id('submitArea')
            select=submit_area.find_element_by_id('submit_language')
            select.click()
            select.find_elements_by_tag_name('option')[4].click()  # C++14
            select.click()
            
            source=submit_area.find_element_by_id('submit_source')
            
            
        # ???????????????????????????????????????
        print(browser.title)
        print(".....END.....")

        #????¶??¶???????
        com = input()
        browser.quit()
        if com == 'done' or com == 'fin' :
            break;



if __name__ == '__main__':
    main()

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #coding
    1 | #coding : utf-8
      |  ^~~~~~
a.cc:3:3: error: invalid preprocessing directive #version
    3 | # version 1.0 2017/02/10  ??????????????¨???????????????
      |   ^~~~~~~
a.cc:4:3: error: invalid preprocessing directive #version
    4 | # version 1.1 2017/02/11???????????????????°????????????????????????¶??§??????
      |   ^~~~~~~
a.cc:4:44: error: extended character ° is not valid in an identifier
    4 | # version 1.1 2017/02/11???????????????????°????????????????????????¶??§??????
      |                                            ^
a.cc:4:69: error: extended character ¶ is not valid in an identifier
    4 | # version 1.1 2017/02/11???????????????????°????????????????????????¶??§??????
      |                                                                     ^
a.cc:4:72: error: extended character § is not valid in an identifier
    4 | # version 1.1 2017/02/11???????????????????°????????????????????????¶??§??????
      |                                                                        ^
a.cc:5:3: error: invalid preprocessing directive #version
    5 | # version 1.2 2017/02/11???AOJ??????????????°??????
      |   ^~~~~~~
a.cc:5:45: error: extended character ° is not valid in an identifier
    5 | # version 1.2 2017/02/11???AOJ??????????????°??????
      |                                             ^
a.cc:6:3: error: invalid preprocessing directive #version
    6 | # version 1.3 2017/02/12  ?§£????????????????????????????????¨?????§?????????????????????
      |   ^~~~~~~
a.cc:6:28: error: extended character § is not valid in an identifier
    6 | # version 1.3 2017/02/12  ?§£????????????????????????????????¨?????§?????????????????????
      |                            ^
a.cc:6:28: error: extended character £ is not valid in an identifier
a.cc:6:68: error: extended character § is not valid in an identifier
    6 | # version 1.3 2017/02/12  ?§£????????????????????????????????¨?????§?????????????????????
      |                                                                    ^
a.cc:16:14: warning: multi-character literal with 53 characters exceeds 'int' size of 4 bytes
   16 |     user_url='http://judge.u-aizu.ac.jp/onlinejudge/webservice/user'
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:17:17: warning: multi-character literal with 57 characters exceeds 'int' size of 4 bytes
   17 |     problem_url='http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id='
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:19:7: error: invalid preprocessing directive #?
   19 |     # ????´¢?????????id?????\???
      |       ^
a.cc:19:11: error: extended character ¢ is not valid in an identifier
   19 |     # ????´¢?????????id?????\???
      |           ^
a.cc:20:14: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
   20 |     rival_id='minaminao'
      |              ^~~~~~~~~~~
a.cc:21:11: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   21 |     my_id='oshibori'
      |           ^~~~~~~~~~
a.cc:22:17: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
   22 |     my_password='1225tomoki'
      |                 ^~~~~~~~~~~~
a.cc:24:15: warning: multi-character literal with 14 characters exceeds 'int' size of 4 bytes
   24 |         print('Input your id!', end=' ')
      |               ^~~~~~~~~~~~~~~~
a.cc:27:15: warning: multi-character literal with 20 characters exceeds 'int' size of 4 bytes
   27 |         print('Input your password!', end=' ')
      |               ^~~~~~~~~~~~~~~~~~~~~~
a.cc:30:15: warning: multi-character literal with 22 characters exceeds 'int' size of 4 bytes
   30 |         print('Input your rival\'s id!', end=' ')
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:35:7: error: invalid preprocessing directive #?
   35 |     # ??????????????????
      |       ^
a.cc:36:15: warning: multi-character character constant [-Wmultichar]
   36 |     myparams={'id':my_id}                   #  ME
      |               ^~~~
a.cc:36:45: error: stray '#' in program
   36 |     myparams={'id':my_id}                   #  ME
      |                                             ^
a.cc:38:18: warning: multi-character character constant [-Wmultichar]
   38 |     rivalparams={'id':rival_id}               #  RIVAL
      |                  ^~~~
a.cc:38:47: error: stray '#' in program
   38 |     rivalparams={'id':rival_id}               #  RIVAL
      |                                               ^
a.cc:41:7: error: invalid preprocessing directive #?
   41 |     # ??????????????????
      |       ^
a.cc:47:29: warning: multi-character literal with 7 characters exceeds 'int' size of 4 bytes
   47 |     for i in mysoup.findAll('problem'):
      |                             ^~~~~~~~~
a.cc:50:32: warning: multi-character literal with 7 characters exceeds 'int' size of 4 bytes
   50 |     for i in rivalsoup.findAll('problem'):
      |                                ^~~~~~~~~
a.cc:61:11: error: empty character constant
   61 |     print('')
      |           ^~
a.cc:64:6: error: invalid preprocessing directive #result_list
   64 |     #result_list.sort(key=lambda x:x[1])
      |      ^~~~~~~~~~~
a.cc:65:6: error: invalid preprocessing directive #for
   65 |     #for i in result_list:
      |      ^~~
a.cc:66:10: error: invalid preprocessing directive #print
   66 |     #    print(i[1])
      |          ^~~~~
a.cc:67:11: warning: multi-character literal with 7 characters exceeds 'int' size of 4 bytes
   67 |     print('Sum is ',end='')
      |           ^~~~~~~~~
a.cc:67:25: error: empty character constant
   67 |     print('Sum is ',end='')
      |                         ^~
a.cc:72:10: error: invalid preprocessing directive #?
   72 |         #??????????????¶?????????
      |          ^
a.cc:72:24: error: extended character ¶ is not valid in an identifier
   72 |         #??????????????¶?????????
      |                        ^
a.cc:73:34: warning: multi-character literal with 14 characters exceeds 'int' size of 4 bytes
   73 |         browser=webdriver.Chrome('./chromedriver')
      |                                  ^~~~~~~~~~~~~~~~
a.cc:74:10: error: invalid preprocessing directive #?
   74 |         #?????????????????¨?§?
      |          ^
a.cc:74:29: error: extended character § is not valid in an identifier
   74 |         #?????????????????¨?§?
      |                             ^
a.cc:76:11: error: invalid preprocessing directive #?
   76 |         # ?????°??????
      |           ^
a.cc:76:16: error: extended character ° is not valid in an identifier
   76 |         # ?????°??????
      |                ^
a.cc:77:46: warning: multi-character character constant [-Wmultichar]
   77 |         loginform=browser.find_element_by_id('user')
      |                                              ^~~~~~
a.cc:78:38: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
   78 |         loginform.find_element_by_id('login').click()
      |                                      ^~~~~~~
a.cc:80:52: warning: multi-character literal with 11 characters exceeds 'int' size of 4 bytes
   80 |         loginUserID=loginform.find_element_by_name('loginUserID')
      |                                                    ^~~~~~~~~~~~~
a.cc:81:54: warning: multi-character literal with 13 characters exceeds 'int' size of 4 bytes
   81 |         loginPassword=loginform.find_element_by_name('loginPassword')
      |                                                      ^~~~~~~~~~~~~~~
a.cc:86:49: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
   86 |         logininput=loginform.find_element_by_id('logininput')
      |                                                 ^~~~~~~~~~~~
a.cc:90:10: error: invalid preprocessing directive #?
   90 |         #???????????????
      |          ^
a.cc:91:20: warning: multi-character literal with 56 characters exceeds 'int' size of 4 bytes
   91 |         submit_url='http://judge.u-aizu.ac.jp/onlinejudge/status.jsp#submit/'+ result_list[index][1]
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:93:52: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
   93 |             submit_area=browser.find_element_by_id('submitArea')
      |                                                    ^~~~~~~~~~~~
a.cc:94:51: warning: multi-character literal with 15 characters exceeds 'int' size of 4 bytes
   94 |             select=submit_area.find_element_by_id('submit_language')
      |                                                   ^~~~~~~~~~~~~~~~~
a.cc:96:46: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   96 |             select.find_elements_by_tag_name('option')[4].click()  # C++14
      |                                              ^~~~~~~~
a.cc:96:68: error: stray '#' in program
   96 |             select.find_elements_by_tag_name('option')[4].click()  # C++14
      |                                                                    ^
a.cc:99:51: warning: multi-character literal with 13 characters exceeds 'int' size of 4 bytes
   99 |             source=submit_area.find_element_by_id('submit_source')
      |                                                   ^~~~~~~~~~~~~~~
a.cc:102:11: error: invalid preprocessing directive #?
  102 |         # ???????????????????????????????????????
      |           ^
a.cc:106:10: error: invalid preprocessing directive #?
  106 |         #????¶??¶???????
      |          ^
a.cc:106:14: error: extended character ¶ is not valid in an identifier
  106 |         #????¶??¶???????
      |              ^
a.cc:106:17: error: extended character ¶ is not valid in an identifier
  106 |         #????¶??¶???????
      |                 ^
a.cc:109:19: warning: multi-character character constant [-Wmultichar]
  109 |         if com == 'done' or com == 'fin' :
      |                   ^~~~~~
a.cc:109:36: warning: multi-character character constant [-Wmult