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_38808201_8452.cpp: In function 'void write(int)':
0_0_38808201_8452.cpp:84:12: error: 'int8_t' does not name a type
   84 |         rg int8_t stk[10],top;
      |            ^~~~~~
0_0_38808201_8452.cpp:4:1: note: 'int8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
    3 | #include<queue>
  +++ |+#include <cstdint>
    4 | #define rg register
0_0_38808201_8452.cpp:85:12: error: 'stk' was not declared in this scope; did you mean 'std'?
   85 |         do stk[++top]=fl%10,fl/=10; while(fl);
      |            ^~~
      |            std
0_0_38808201_8452.cpp:85:18: error: 'top' was not declared in this scope
   85 |         do stk[++top]=fl%10,fl/=10; while(fl);
      |                  ^~~
0_0_38808201_8452.cpp:86:14: error: 'top' was not declared in this scope
   86 |         for(;top;top--) putchar(stk[top]+'0');
      |              ^~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cstdio:42,
                 from 0_0_38808201_8452.cpp:1:
0_0_38808201_8452.cpp:86:33: error: 'stk' was not declared in this scope; did you mean 'std'?
   86 |         for(;top;top--) putchar(stk[top]+'0');
      |                                 ^~~
0_0_38808201_8452.cpp:86:25: note: in expansion of macro 'putchar'
   86 |         for(;top;top--) putchar(stk[top]+'0');
      |                         ^~~~~~~
0_0_38808201_8452.cpp: In function 'void swrite(std::string)':
0_0_38808201_8452.cpp:89:12: error: 'int8_t' does not name a type
   89 |         rg int8_t dd=s.size();
      |            ^~~~~~
0_0_38808201_8452.cpp:89:12: note: 'int8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
0_0_38808201_8452.cpp:90:16: error: 'int8_t' does not name a type
   90 |         for(rg int8_t i=0;i<dd;i++) putchar(s[i]);
      |                ^~~~~~
0_0_38808201_8452.cpp:90:16: note: 'int8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
0_0_38808201_8452.cpp:90:27: error: expected ';' before 'i'
   90 |         for(rg int8_t i=0;i<dd;i++) putchar(s[i]);
      |                           ^
      |                           ;
0_0_38808201_8452.cpp:90:29: error: 'dd' was not declared in this scope
   90 |         for(rg int8_t i=0;i<dd;i++) putchar(s[i]);
      |                             ^~
0_0_38808201_8452.cpp:90:27: error: 'i' was not declared in this scope
   90 |         for(rg int8_t i=0;i<dd;i++) putchar(s[i]);
      |                           ^


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-26 02:35:01, Gzip enabled