/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:27:77: error: unable to find numeric literal operator 'operator""\U0000ff1b'
   27 |                                 if(list[i].num_paper>=1){list[i].total_num+=8000;}
      |                                                                             ^~~~~~
/in/foo.cc:27:77: note: use '-fext-numeric-literals' to enable more built-in suffixes
/in/foo.cc:28:52: warning: comparison with string literal results in unspecified behavior [-Waddress]
   28 |                                 if(list[i].is_admin=="Y"){list[i].total_num+=850;}
      |                                    ~~~~~~~~~~~~~~~~^~~~~
/in/foo.cc:28:52: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
/in/foo.cc:28:78: error: unable to find numeric literal operator 'operator""\U0000ff1b'
   28 |                                 if(list[i].is_admin=="Y"){list[i].total_num+=850;}
      |                                                                              ^~~~~
/in/foo.cc:28:78: note: use '-fext-numeric-literals' to enable more built-in suffixes
/in/foo.cc:32:85: error: unable to find numeric literal operator 'operator""\U0000ff1b'
   32 |                                         if(list[i].num_paper>=1){list[i].total_num+=8000;}
      |                                                                                     ^~~~~~
/in/foo.cc:32:85: note: use '-fext-numeric-literals' to enable more built-in suffixes
/in/foo.cc:33:74: error: expected ']' before '}' token
   33 |                                         if(list[i].class_score>85){list[i}.total_num+=4000;}
      |                                                                          ^
      |                                                                          ]
/in/foo.cc:33:74: error: expected ';' before '}' token
   33 |                                         if(list[i].class_score>85){list[i}.total_num+=4000;}
      |                                                                          ^
      |                                                                          ;
/in/foo.cc:33:74: warning: statement has no effect [-Wunused-value]
   33 |                                         if(list[i].class_score>85){list[i}.total_num+=4000;}
      |                                                                    ~~~~~~^
/in/foo.cc:33:75: error: expected primary-expression before '.' token
   33 |                                         if(list[i].class_score>85){list[i}.total_num+=4000;}
      |                                                                           ^
/in/foo.cc:34:59: warning: comparison with string literal results in unspecified behavior [-Waddress]
   34 |                                         if(list[i].is_west=="Y"){list[i].total_num+=1000;}
      |                                            ~~~~~~~~~~~~~~~^~~~~
/in/foo.cc:34:59: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
/in/foo.cc:35:60: warning: comparison with string literal results in unspecified behavior [-Waddress]
   35 |                                         if(list[i].is_admin=="Y"){list[i].total_num+=850;}
      |                                            ~~~~~~~~~~~~~~~~^~~~~
/in/foo.cc:35:60: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
/in/foo.cc:37:33: error: expected '}' before 'else'
   37 |                                 else{
      |                                 ^~~~
/in/foo.cc:25:42: note: to match this '{'
   25 |                 if(list[i].test_score>80){
      |                                          ^
/in/foo.cc:38:85: error: unable to find numeric literal operator 'operator""\U0000ff1b'
   38 |                                         if(list[i].num_paper>=1){list[i].total_num+=8000;}
      |                                                                                     ^~~~~~
/in/foo.cc:38:85: note: use '-fext-numeric-literals' to enable more built-in suffixes
/in/foo.cc:39:74: error: expected ']' before '}' token
   39 |                                         if(list[i].class_score>85){list[i}.total_num+=4000;}
      |                                                                          ^
      |                                                                          ]
/in/foo.cc:39:74: error: expected ';' before '}' token
   39 |                                         if(list[i].class_score>85){list[i}.total_num+=4000;}
      |                                                                          ^
      |                                                                          ;
/in/foo.cc:39:74: warning: statement has no effect [-Wunused-value]
   39 |                                         if(list[i].class_score>85){list[i}.total_num+=4000;}
      |                                                                    ~~~~~~^
/in/foo.cc:39:75: error: expected primary-expression before '.' token
   39 |                                         if(list[i].class_score>85){list[i}.total_num+=4000;}
      |                                                                           ^
/in/foo.cc:40:59: warning: comparison with string literal results in unspecified behavior [-Waddress]
   40 |                                         if(list[i].is_west=="Y"){list[i].total_num+=1000;}
      |                                            ~~~~~~~~~~~~~~~^~~~~
/in/foo.cc:40:59: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
/in/foo.cc:41:60: warning: comparison with string literal results in unspecified behavior [-Waddress]
   41 |                                         if(list[i].is_admin=="Y"){list[i].total_num+=850;}
      |                                            ~~~~~~~~~~~~~~~~^~~~~
/in/foo.cc:41:60: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
/in/foo.cc: At global scope:
/in/foo.cc:45:17: error: expected declaration before '}' token
   45 |                 }
      |                 ^
/in/foo.cc:46:9: error: expected declaration before '}' token
   46 |         }
      |         ^
/in/foo.cc:52:9: error: expected unqualified-id before 'for'
   52 |         for(int i=0;i<stu_num;i++)
      |         ^~~
/in/foo.cc:52:21: error: 'i' does not name a type
   52 |         for(int i=0;i<stu_num;i++)
      |                     ^
/in/foo.cc:52:31: error: 'i' does not name a type
   52 |         for(int i=0;i<stu_num;i++)
      |                               ^
/in/foo.cc:62:9: error: 'cout' does not name a type
   62 |         cout<<max_stu;
      |         ^~~~
/in/foo.cc:63:9: error: 'cout' does not name a type
   63 |         cout<<max;
      |         ^~~~
/in/foo.cc:64:9: error: 'cout' does not name a type
   64 |         cout<<sum;
      |         ^~~~
/in/foo.cc:65:9: error: expected unqualified-id before 'return'
   65 |         return 0;
      |         ^~~~~~
/in/foo.cc:68:1: error: expected declaration before '}' token
   68 | }
      | ^

信息

递交者
类型
递交
题目
P1001 谁拿了最多奖学金
语言
C++
递交时间
2025-05-10 17:36:11
评测时间
2025-05-10 17:36:11
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes