/ Vijos /

记录详情

Compile Error

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

信息

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