6 条评论
-
hetao15509837 LV 1 @ 2024-8-19 12:08:32已修改
关于HTML,我只写一个a打开之后还是可以看到一个只有一个a的页面(格式我换了)
-
2024-8-18 21:24:55@
更短
#include <cstdio> main(){puts("a");}
-
2024-8-15 9:51:25@
a
-
2024-8-7 17:45:58@
python2
print'a'
-
2024-7-27 7:48:12@
操,想粘贴一下条例把刷屏符发出去了
-
2024-7-26 14:57:48@
C++不能编译,而且有警告:
Compile Error 0ms 0KiB foo.cc:2:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] 2 | main(){printf("a")} | ^~~~ foo.cc: In function ‘int main()’: foo.cc:2:19: error: expected ‘;’ before ‘}’ token 2 | main(){printf("a")} | ^ | ;
修改至可编译:
#include<stdio.h> main(){printf("a");}
Accepted 2.995333ms 768KiB foo.cc:2:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] 2 | main(){printf("a");} | ^~~~ a
至无警告:
#include<stdio.h> int main(){printf("a");}
Accepted 2.916666ms 536KiB a
更短(较上一个减少一个字符):
#include<cstdio> int main(){printf("a");}
Accepted 2.841333ms 536KiB a
PHP无法运行,但我没学过:
Runtime Error 10.174ms 2220KiB ExitCode: 255 Fatal error: Uncaught Error: Call to undefined function e_() in /w/foo.php:1 Stack trace: #0 {main} thrown in /w/foo.php on line 1
Bash(我没学过):
echo 'a'
Accepted 4.388666ms 580KiB a
- 1