Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
156656 万嘉宇 ASCII码 C++ Compile Error 0 MS 0 KB 235 2026-07-04 14:50:32

Tests(0/0):


Code:

#include <iostream> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int T; cin >> T; for (int i = 0; i < T; ++i) { int ascii_code; cin >> ascii_code; cout << static_cast<char>(ascii_code); } return 0; }


Run Info:

Main.cc:1:21: warning: extra tokens at end of #include directive
 #include  using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int T; cin >> T; for (int i = 0; i < T; ++i) { int ascii_code; cin >> ascii_code; cout << static_cast(ascii_code); } return 0; }
                     ^
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status