/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'int main()':
foo.cpp:11:19: error: 'scanf' was not declared in this scope
     scanf("%d", &n);
                   ^
foo.cpp:37:19: error: 'score' cannot appear in a constant-expression
         if (max < score)
                   ^
foo.cpp:37:13: error: parse error in template argument list
         if (max < score)
             ^
foo.cpp:37:24: error: cannot resolve overloaded function 'max' based on conversion to type 'bool'
         if (max < score)
                        ^
foo.cpp:40:19: error: invalid array assignment
             mname = name;
                   ^
foo.cpp:42:9: error: 'sum' was not declared in this scope
         sum += score;
         ^
foo.cpp:46:17: error: 'printf' was not declared in this scope
     printf(mname);
                 ^
foo.cpp:48:20: error: 'sum' was not declared in this scope
     printf("%d\n", sum);
                    ^

信息

递交者
类型
递交
题目
P1001 谁拿了最多奖学金
语言
C++
递交时间
2015-08-04 16:33:06
评测时间
2015-08-04 16:33:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes