F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_30449347_27770.cpp: In function 'int find(char*)':
0_0_30449347_27770.cpp:21:26: error: 'strcpy_s' was not declared in this scope
   strcpy_s(a[0].name, str);
                          ^
0_0_30449347_27770.cpp:27:29: error: 'strcmp' was not declared in this scope
   if (!strcmp(a[i].name, str))
                             ^
0_0_30449347_27770.cpp:31:26: error: 'strcpy_s' was not declared in this scope
   strcpy_s(a[t].name, str);
                          ^
0_0_30449347_27770.cpp: In function 'bool cmp(node, node)':
0_0_30449347_27770.cpp:42:33: error: 'strcmp' was not declared in this scope
     return strcmp(a.name, b.name) < 0?1:0;
                                 ^
0_0_30449347_27770.cpp: In function 'int main()':
0_0_30449347_27770.cpp:56:25: error: 'scanf_s' was not declared in this scope
  while (scanf_s("%d",&to)==1)
                         ^
0_0_30449347_27770.cpp:59:25: error: 'memset' was not declared in this scope
   memset(a, 0, sizeof(a));
                         ^
0_0_30449347_27770.cpp:85:35: error: cast from 'char*' to 'char' loses precision [-fpermissive]
    printf_s("%s %d\n", (char)a[i].name, a[i].score);
                                   ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-25 14:46:08, Gzip enabled