编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#18425 | #2015. shenchuan的CF段位 | Compile Error | 0 | 0 ms | 0 K | C++ / 722 B | C192023212364 | 2024-10-19 15:20:43 |
int
编译信息
/sandbox/1/a.cpp:6:4: error: invalid suffix "��Rating" on integer constant
6 | if(0��Rating<1200);
| ^~~~~~~~~
/sandbox/1/a.cpp:8:4: error: invalid suffix "��Rating" on integer constant
8 | if(1200��Rating<1400����
| ^~~~~~~~~~~~
/sandbox/1/a.cpp:8:21: error: invalid suffix "����" on integer constant
8 | if(1200��Rating<1400����
| ^~~~~~~~
/sandbox/1/a.cpp:10:4: error: invalid suffix "��Rating" on integer constant
10 | if(1600��Rating<1700);
| ^~~~~~~~~~~~
/sandbox/1/a.cpp:12:4: error: invalid suffix "��Rating" on integer constant
12 | if(1700��Rating<1900);
| ^~~~~~~~~~~~
/sandbox/1/a.cpp:14:4: error: invalid suffix "��Rating" on integer constant
14 | if(1900��Rating<2100);
| ^~~~~~~~~~~~
/sandbox/1/a.cpp:16:4: error: invalid suffix "��Rating" on integer constant
16 | if(2100��Rating<2300);
| ^~~~~~~~~~~~
/sandbox/1/a.cpp:18:4: error: invalid suffix "��Rating" on integer constant
18 | if(2300��Rating<2400);
| ^~~~~~~~~~~~
/sandbox/1/a.cpp:20:4: error: invalid suffix "��Rating" on integer constant
20 | if(2400��Rating<2600);
| ^~~~~~~~~~~~
/sandbox/1/a.cpp:22:4: error: invalid suffix "��Rating" on integer constant
22 | if(2600��Rating<3000);
| ^~~~~~~~~~~~
/sandbox/1/a.cpp:24:4: error: invalid suffix "��Rating" on integer constant
24 | if(3000��Rating<4000);
| ^~~~~~~~~~~~
/sandbox/1/a.cpp:26:4: error: invalid suffix "��Rating" on integer constant
26 | if(4000��Rating);
| ^~~~~~~~~~~~
/sandbox/1/a.cpp: In function 'int main()':
/sandbox/1/a.cpp:5:9: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'double' [-Wformat=]
5 | scanf("%d\n",Rating);
| ~^ ~~~~~~
| | |
| int* double
/sandbox/1/a.cpp:8:4: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17'
8 | if(1200��Rating<1400����
| ^~~~~~~~~~~~
/sandbox/1/a.cpp:10:1: error: expected primary-expression before 'if'
10 | if(1600��Rating<1700);
| ^~
/sandbox/1/a.cpp:9:21: error: expected ')' before 'if'
9 | printf("Pupil NO") ;
| ^
| )
10 | if(1600��Rating<1700);
| ~~
/sandbox/1/a.cpp:8:3: note: to match this '('
8 | if(1200��Rating<1400����
| ^
/sandbox/1/a.cpp:27:22: error: expected ';' before 'return'
27 | printf("Tourist YES")
| ^
| ;
28 | return 0
| ~~~~~~
/sandbox/1/a.cpp:5:6: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
5 | scanf("%d\n",Rating);
| ~~~~~^~~~~~~~~~~~~~~