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);
^