結果
| 問題 | 
                            No.9006 マルチバイト文字テスト(テスト用)
                             | 
                    
| ユーザー | 
                             | 
                    
| 提出日時 | 2019-01-22 08:19:17 | 
| 言語 | cLay  (20241019-1)  | 
                    
| 結果 | 
                             
                                CE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 594 bytes | 
| コンパイル時間 | 1,679 ms | 
| コンパイル使用メモリ | 163,508 KB | 
| 最終ジャッジ日時 | 2024-07-05 13:17:22 | 
| 合計ジャッジ時間 | 2,104 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge5 | 
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
            
            
            
            
            ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:9:15: error: ‘mygc’ was not declared in this scope
    9 |   while ((c = mygc()) != '\n'){
      |               ^~~~
main.cpp:11:11: error: ‘class std::vector<unsigned int>’ has no member named ‘push’
   11 |       vec.push(c);
      |           ^~~~
main.cpp:14:11: error: ‘class std::vector<unsigned int>’ has no member named ‘push’
   14 |       vec.push(mygc() << 8 | c)
      |           ^~~~
main.cpp:17:17: error: ‘class std::vector<unsigned int>’ has no member named ‘push’
   17 |             vec.push(mygc() << 16 | mygc() << 8 | c);
      |                 ^~~~
main.cpp:20:11: error: ‘class std::vector<unsigned int>’ has no member named ‘push’
   20 |       vec.push((uint32_t)mygc() << 24 | (uint32_t)mygc() << 16 | (uint32_t)mygc() << 8 | c());
      |           ^~~~
main.cpp:20:91: error: ‘c’ cannot be used as a function
   20 |       vec.push((uint32_t)mygc() << 24 | (uint32_t)mygc() << 16 | (uint32_t)mygc() << 8 | c());
      |                                                                                          ~^~
main.cpp:23:11: error: ‘ALL’ was not declared in this scope
   23 |   reverse(ALL(vec));
      |           ^~~
main.cpp:26:18: error: ‘Fu’ was not declared in this scope; did you mean ‘u’?
   26 |       mypc(u&0xF*Fu);
      |                  ^~
      |                  u
main.cpp:26:7: error: ‘mypc’ was not declared in this scope
   26 |       mypc(u&0xF*Fu);
      |       ^~~~
            
            ソースコード
vector<uint32_t> vec;
{
    uint32_t c;
    while ((c = mygc()) != '\n'){
        if (!(0x80u & c)) {
            vec.push(c);
        }
        else if (!0xC0u & c) {
            vec.push(mygc() << 8 | c)
        }
        else if (!0xE0u & c) {
            vec.push(mygc() << 16 | mygc() << 8 | c);
        }
        else if (!0xE0u & c) {
            vec.push((uint32_t)mygc() << 24 | (uint32_t)mygc() << 16 | (uint32_t)mygc() << 8 | c());
        }
    }
    reverse(ALL(vec));
    for (uint32_t u : vec){
        while (u){
            mypc(u&0xFFu);
            u >>= 8;
        }
    }
}