Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
134377 rsx 04四位数移位 C++ Compile Error 0 MS 0 KB 160 2025-10-27 16:24:55

Tests(0/0):


Code:

#include <iostream> using namespace std; int main(){ int a,b,c,d; scanf(''%1d%1d%1d%1d'',&a,&b,&c,&d); coutd<<a<<b<<c; }


Run Info:

Main.cc:5:14: error: empty character constant
        scanf(''%1d%1d%1d%1d'',&a,&b,&c,&d);
              ^
Main.cc:5:28: error: empty character constant
        scanf(''%1d%1d%1d%1d'',&a,&b,&c,&d);
                            ^
Main.cc: In function 'int main()':
Main.cc:5:17: error: unable to find numeric literal operator 'operator""d'
        scanf(''%1d%1d%1d%1d'',&a,&b,&c,&d);
                 ^
Main.cc:5:17: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
Main.cc:5:20: error: unable to find numeric literal operator 'operator""d'
        scanf(''%1d%1d%1d%1d'',&a,&b,&c,&d);
                    ^
Main.cc:5:20: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
Main.cc:5:23: error: unable to find numeric literal operator 'operator""d'
        scanf(''%1d%1d%1d%1d'',&a,&b,&c,&d);
                       ^
Main.cc:5:23: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
Main.cc:5:26: error: unable to find numeric literal operator 'operator""d'
        scanf(''%1d%1d%1d%1d'',&a,&b,&c,&d);
                          ^
Main.cc:5:26: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
Main.cc:6:8: error: 'coutd' was not declared in this scope
        coutd<