编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#18535 #2015. shenchuan的CF段位 Compile Error 0 0 ms 0 K C++ / 1.1 K 192023212331 2024-10-19 15:35:33
显示原始代码
#include <stdio.h>
int main(void) {
    int n;
    int j = 0;
    scanf("%d", &n);
    a = [];
    for (int i = 1; i <= n, i++) {
        scanf("%d", &a[j]);
        if (0 ≤ a[j] < 1200)
            printf(" Newbie No");
        if (1200 ≤ a[j] < 1400)
            printf("Pupil NO");
        if (1400 ≤ a[j] < 1600)
            printf("Specialist No");
        if (1600 ≤ a[j] < 1700)
            printf("Expert No");
        if (1700 ≤ a[j] < 1900)
            printf("Expert Yes");
        if (1900 ≤ a[j] < 2100)
            printf("Candidate Master Yes");
        if (2100 ≤ a[j] < 2300)
            printf(" Master Yes");
        if (2300 ≤ a[j] < 2400)
            printf("International Master Yes");
        if (2400 ≤ a[j] < 2600)
            printf("Grandmaster");
        if (2600 ≤ a[j] < 3000)
            printf("International Grandmaster Yes");
        if (3000 ≤ a[j] < 4000)
            printf("Legendary Grandmaster Yes");
        if (4000 ≤ a[j])
            printf("Tourist Yes");
        j = j + 1
    }
    return 0;
})

编译信息

/sandbox/1/a.cpp:10:15: error: extended character ≤ is not valid in an identifier
   10 |         if (0 �� a[j] < 1200)
      |               ^
/sandbox/1/a.cpp:12:18: error: extended character ≤ is not valid in an identifier
   12 |         if (1200 �� a[j] < 1400)
      |                  ^
/sandbox/1/a.cpp:14:18: error: extended character ≤ is not valid in an identifier
   14 |         if (1400 �� a[j] < 1600)
      |                  ^
/sandbox/1/a.cpp:16:18: error: extended character ≤ is not valid in an identifier
   16 |         if (1600 �� a[j] < 1700)
      |                  ^
/sandbox/1/a.cpp:18:18: error: extended character ≤ is not valid in an identifier
   18 |         if (1700 �� a[j] < 1900)
      |                  ^
/sandbox/1/a.cpp:20:18: error: extended character ≤ is not valid in an identifier
   20 |         if (1900 �� a[j] < 2100)
      |                  ^
/sandbox/1/a.cpp:22:18: error: extended character ≤ is not valid in an identifier
   22 |         if (2100 �� a[j] < 2300)
      |                  ^
/sandbox/1/a.cpp:24:18: error: extended character ≤ is not valid in an identifier
   24 |         if (2300 �� a[j] < 2400)
      |                  ^
/sandbox/1/a.cpp:26:18: error: extended character ≤ is not valid in an identifier
   26 |         if (2400 �� a[j] < 2600)
      |                  ^
/sandbox/1/a.cpp:28:18: error: extended character ≤ is not valid in an identifier
   28 |         if (2600 �� a[j] < 3000)
      |                  ^
/sandbox/1/a.cpp:30:18: error: extended character ≤ is not valid in an identifier
   30 |         if (3000 �� a[j] < 4000)
      |                  ^
/sandbox/1/a.cpp:32:18: error: extended character ≤ is not valid in an identifier
   32 |         if (4000 �� a[j] )
      |                  ^
/sandbox/1/a.cpp: In function 'int main()':
/sandbox/1/a.cpp:6:5: error: 'a' was not declared in this scope
    6 |     a = [];
      |     ^
/sandbox/1/a.cpp: In lambda function:
/sandbox/1/a.cpp:6:11: error: expected '{' before ';' token
    6 |     a = [];
      |           ^
/sandbox/1/a.cpp: In function 'int main()':
/sandbox/1/a.cpp:6:11: warning: lambda expressions only available with '-std=c++11' or '-std=gnu++11'
/sandbox/1/a.cpp:7:26: error: expected ';' before ')' token
    7 |     for (int i=1;i<=n,i++)
      |                          ^
      |                          ;
/sandbox/1/a.cpp:10:14: error: expected ')' before '\U00002264'
   10 |         if (0  a[j] < 1200)
      |            ~ ^~
      |              )
/sandbox/1/a.cpp:12:17: error: expected ')' before '\U00002264'
   12 |         if (1200  a[j] < 1400)
      |            ~    ^~
      |                 )
/sandbox/1/a.cpp:14:17: error: expected ')' before '\U00002264'
   14 |         if (1400  a[j] < 1600)
      |            ~    ^~
      |                 )
/sandbox/1/a.cpp:16:17: error: expected ')' before '\U00002264'
   16 |         if (1600  a[j] < 1700)
      |            ~    ^~
      |                 )
/sandbox/1/a.cpp:18:17: error: expected ')' before '\U00002264'
   18 |         if (1700  a[j] < 1900)
      |            ~    ^~
      |                 )
/sandbox/1/a.cpp:20:17: error: expected ')' before '\U00002264'
   20 |         if (1900  a[j] < 2100)
      |            ~    ^~
      |                 )
/sandbox/1/a.cpp:22:17: error: expected ')' before '\U00002264'
   22 |         if (2100  a[j] < 2300)
      |            ~    ^~
      |                 )
/sandbox/1/a.cpp:24:17: error: expected ')' before '\U00002264'
   24 |         if (2300  a[j] < 2400)
      |            ~    ^~
      |                 )
/sandbox/1/a.cpp:26:17: error: expected ')' before '\U00002264'
   26 |         if (2400  a[j] < 2600)
      |            ~    ^~
      |                 )
/sandbox/1/a.cpp:28:17: error: expected ')' before '\U00002264'
   28 |         if (2600  a[j] < 3000)
      |            ~    ^~
      |                 )
/sandbox/1/a.cpp:30:17: error: expected ')' before '\U00002264'
   30 |         if (3000  a[j] < 4000)
      |            ~    ^~
      |                 )
/sandbox/1/a.cpp:32:17: error: expected ')' before '\U00002264'
   32 |         if (4000  a[j] )
      |            ~    ^~
      |                 )
/sandbox/1/a.cpp:34:18: error: expected ';' before '}' token
   34 |         j = j + 1
      |                  ^
      |                  ;
   35 |     }
      |     ~             
/sandbox/1/a.cpp: At global scope:
/sandbox/1/a.cpp:37:2: error: expected unqualified-id before ')' token
   37 | })
      |  ^
/sandbox/1/a.cpp: In function 'int main()':
/sandbox/1/a.cpp:5:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
    5 |     scanf("%d",&n);
      |     ~~~~~^~~~~~~~~