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_39771444_21029.cpp:1:2: error: universal character \u003C is not valid in an identifier
    1 | #include\u003Cstdio.h>
      |  ^
0_0_39771444_21029.cpp:1:2: error: invalid preprocessing directive #include<stdio
    1 | #include\u003Cstdio.h>
      |  ^~~~~~~~~~~~~~~~~~
0_0_39771444_21029.cpp:2:2: error: universal character \u003C is not valid in an identifier
    2 | #include\u003Cstring.h>
      |  ^
0_0_39771444_21029.cpp:2:2: error: invalid preprocessing directive #include<string
    2 | #include\u003Cstring.h>
      |  ^~~~~~~~~~~~~~~~~~~
0_0_39771444_21029.cpp:22:12: error: stray '\' in program
   22 |      scanf(\"%d\",&T);
      |            ^
0_0_39771444_21029.cpp:22:13: error: missing terminating " character
   22 |      scanf(\"%d\",&T);
      |             ^~~~~~~~~~
0_0_39771444_21029.cpp:36:21: error: stray '\' in program
   36 |              printf(\"%c\",temp[j]);
      |                     ^
0_0_39771444_21029.cpp:36:22: error: missing terminating " character
   36 |              printf(\"%c\",temp[j]);
      |                      ^~~~~~~~~~~~~~~
0_0_39771444_21029.cpp: In function 'int main()':
0_0_39771444_21029.cpp:23:6: error: 'getchar' was not declared in this scope
   23 |      getchar();//在gets之前先将换行符读取掉
      |      ^~~~~~~
0_0_39771444_21029.cpp:1:1: note: 'getchar' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | #include\u003Cstdio.h>
0_0_39771444_21029.cpp:28:10: error: 'gets' was not declared in this scope
   28 |          gets(a);
      |          ^~~~
0_0_39771444_21029.cpp:29:29: error: 'strlen' was not declared in this scope
   29 |          for(int j = 0; j < strlen(a);j++)
      |                             ^~~~~~
0_0_39771444_21029.cpp:1:1: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
  +++ |+#include <cstring>
    1 | #include\u003Cstdio.h>
0_0_39771444_21029.cpp:34:10: error: 'printf' was not declared in this scope
   34 |          printf("String #%d\n",i);
      |          ^~~~~~
0_0_39771444_21029.cpp:34:10: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
0_0_39771444_21029.cpp:35:29: error: 'strlen' was not declared in this scope
   35 |          for(int j = 0 ;j < strlen(temp);j++)
      |                             ^~~~~~
0_0_39771444_21029.cpp:35:29: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?


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-29 04:21:02, Gzip enabled