Home STD Contest Notification Clarification Problems Ranklist Status Print Sign Out

View Compilation Error

1_867_4453_22701.cpp: In function 'int main()':
1_867_4453_22701.cpp:38:21: error: 'strcmp' was not declared in this scope
   if(strcmp(mm, "AM") == 0) {
                     ^
1_867_4453_22701.cpp:42:20: error: 'strcpy' was not declared in this scope
     strcpy(mm, "PM");
                    ^
1_867_4453_22701.cpp:44:20: error: 'strcpy' was not declared in this scope
     strcpy(mm, "PM");
                    ^
1_867_4453_22701.cpp:50:20: error: 'strcpy' was not declared in this scope
     strcpy(mm, "AM");
                    ^
1_867_4453_22701.cpp:52:20: error: 'strcpy' was not declared in this scope
     strcpy(mm, "AM");
                    ^
1_867_4453_22701.cpp:60:21: error: 'strcmp' was not declared in this scope
   if(strcmp(mm, "AM") == 0) {
                     ^
1_867_4453_22701.cpp:64:20: error: 'strcpy' was not declared in this scope
     strcpy(mm, "PM");
                    ^
1_867_4453_22701.cpp:66:20: error: 'strcpy' was not declared in this scope
     strcpy(mm, "PM");
                    ^
1_867_4453_22701.cpp:72:20: error: 'strcpy' was not declared in this scope
     strcpy(mm, "AM");
                    ^
1_867_4453_22701.cpp:74:20: error: 'strcpy' was not declared in this scope
     strcpy(mm, "AM");
                    ^
1_867_4453_22701.cpp:80:33: error: 'strcmp' was not declared in this scope
   if(tt == 12 && strcmp(mm, "PM") == 0) {
                                 ^
1_867_4453_22701.cpp:82:19: error: 'strcpy' was not declared in this scope
    strcpy(mm, "AM");
                   ^
1_867_4453_22701.cpp:84:19: error: 'strcpy' was not declared in this scope
    strcpy(mm, "PM");
                   ^


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-12-01 12:07:23, Gzip enabled