记录详情

Compile Error

foo.cc:61:1: error: stray '\343' in program
 】
 ^
foo.cc:61:2: error: stray '\200' in program
 】
  ^
foo.cc:61:3: error: stray '\221' in program
 】
   ^
foo.cc: In function 'int main()':
foo.cc:20:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
         if(b>80)
         ^~
foo.cc:22:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
           if(k>=1)
           ^~
foo.cc:24:11: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
           if(m=='Y'&&b>80)
           ^~
foo.cc:26:12: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
            if(n=='Y')
            ^~
foo.cc:33:19: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
                   if(m=='Y'&&b>80)
                   ^~
foo.cc:35:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
                    if(n=='Y')
                    ^~
foo.cc:5:21: warning: unused variable 's' [-Wunused-variable]
   int N,M,a,b,i,j,k,s,sum;
                     ^
foo.cc:9:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&N);
   ~~~~~^~~~~~~~~
foo.cc:14:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&M);
     ~~~~~^~~~~~~~~
foo.cc:17:12: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
       scanf("%s %d%d %c %c %d",str,&a,&b,&m,&n,&k);
       ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1006 谁拿了最多奖学金
语言
C++
递交时间
2021-09-12 20:09:52
评测时间
2021-09-12 21:01:14
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes