/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'int main()':
foo.cpp:10:29: error: 'memset' was not declared in this scope
     memset(nam,0,sizeof(nam));
                             ^
foo.cpp:41:34: error: cannot pass objects of non-trivially-copyable type 'std::string {aka class std::basic_string<char>}' through '...'
     printf("%s\n%d\n%d\n", nam[ma], num[ma], mb);
                                  ^
foo.cpp:41:48: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'std::string {aka std::basic_string<char>}' [-Wformat=]
     printf("%s\n%d\n%d\n", nam[ma], num[ma], mb);
                                                ^

信息

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