結果
| 問題 | No.841 8/32 | 
| コンテスト | |
| ユーザー |  yuruhiya | 
| 提出日時 | 2019-07-06 12:06:52 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                CE
                                 
                            (最新) 
                                AC
                                 
                            (最初) | 
| 実行時間 | - | 
| コード長 | 527 bytes | 
| コンパイル時間 | 64 ms | 
| コンパイル使用メモリ | 23,168 KB | 
| 最終ジャッジ日時 | 2024-11-14 21:29:55 | 
| 合計ジャッジ時間 | 400 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge3 | 
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
            
            
            
            
            ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:4:26: error: '_getchar_nolock' was not declared in this scope; did you mean 'getchar_unlocked'?
    4 | #define getchar_unlocked _getchar_nolock
      |                          ^~~~~~~~~~~~~~~
main.cpp:10:12: note: in expansion of macro 'getchar_unlocked'
   10 |     char s=getchar_unlocked();
      |            ^~~~~~~~~~~~~~~~
main.cpp:5:26: error: '_putchar_nolock' was not declared in this scope; did you mean 'putchar_unlocked'?
    5 | #define putchar_unlocked _putchar_nolock
      |                          ^~~~~~~~~~~~~~~
main.cpp:16:9: note: in expansion of macro 'putchar_unlocked'
   16 |         putchar_unlocked('8');
      |         ^~~~~~~~~~~~~~~~
            
            ソースコード
#include <stdio.h>
#if defined(_MSC_VER) || defined(ONLINE_JUDGE)
#define getchar_unlocked _getchar_nolock
#define putchar_unlocked _putchar_nolock
#endif
int main() {
    char s=getchar_unlocked();
    getchar_unlocked();
    getchar_unlocked();
    getchar_unlocked();
    char t=getchar_unlocked();
    
	putchar_unlocked('8');
	putchar_unlocked('/');
	putchar_unlocked('3');
	if (s == 'S' && t == 'S') {
		putchar_unlocked('3');
	}
	else if (s == 'S') {
		putchar_unlocked('2');
	}
	else {
		putchar_unlocked('1');
	}
}
            
            
            
        