a.cpp: In function ‘int main()’:
a.cpp:17:17: warning: ignoring return value of ‘int scanf(const char*, …)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
a.cpp:19:18: warning: ignoring return value of ‘int scanf(const char*, …)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &k);
^
a.cpp:21:47: warning: ignoring return value of ‘int scanf(const char*, …)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s %d",stu[num].id, &stu[num].score);
1025 PAT Ranking (25分)格式错误
最新推荐文章于 2023-10-14 22:25:22 发布