/ Vijos /

记录详情

Compile Error

foo.cc:5:1: error: 'string' does not name a type
 string a,first;
 ^~~~~~
foo.cc: In function 'int main()':
foo.cc:10:30: error: 'a' was not declared in this scope
   scanf("%s %d %d %c %c %d",&a,&b,&c,&d,&e,&f);
                              ^
foo.cc:20:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
         if (c>80 && d== 'Y')
         ^~
foo.cc:22:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
             total =total + money ;
             ^~~~~
foo.cc:25:13: error: 'first' was not declared in this scope
             first = a;
             ^~~~~
foo.cc:28:24: error: 'first' was not declared in this scope
  printf("%s\n%d\n%d\n",first,top,total);
                        ^~~~~

自豪的采用jd5进行评测(github.com/masnn/jd5)

信息

递交者
类型
递交
题目
P1001 谁拿了最多奖学金
语言
C++
递交时间
2020-02-25 21:44:04
评测时间
2020-02-25 21:44:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes