Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
109743 | 李鸿文添 | 04打印三角形 | C++ | Compile Error | 0 MS | 0 KB | 324 | 2025-02-11 09:54:54 |
include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ printf("\%\n\%%%\n\%%%%%\n\%%%%%%%\n\%%%%%%%%%\n"); return 0; }
Main.cc:1:1: error: 'include' does not name a type include // cin\cout\endl ^ In file included from /usr/include/c++/5/cmath:43:0, from Main.cc:5: /usr/include/c++/5/ext/type_traits.h:160:35: error: '__gnu_cxx::__is_null_pointer' declared as an 'inline' variable __is_null_pointer(std::nullptr_t) ^ /usr/include/c++/5/ext/type_traits.h:160:35: error: 'bool __gnu_cxx::__is_null_pointer' redeclared as different kind of symbol /usr/include/c++/5/ext/type_traits.h:155:5: note: previous declaration 'template bool __gnu_cxx::__is_null_pointer(_Type)' __is_null_pointer(_Type) ^ /usr/include/c++/5/ext/type_traits.h:160:21: error: 'nullptr_t' is not a member of 'std' __is_null_pointer(std::nullptr_t) ^ Main.cc: In function 'int main()': Main.cc:8:54: warning: unknown conversion type character 0xa in format [-Wformat=] printf("\%\n\%%%\n\%%%%%\n\%%%%%%%\n\%%%%%%%%%\n"); ^ Main.cc:8:54: warning: unknown conversion type character 0xa in format [-Wformat=] Main.cc:8:54: warning: unknown conversion type character 0xa in format [-Wformat=] Main.cc:8:54: warning: unknown conversion type character 0xa in format [-Wformat=] Main.cc:8:54: warning: unknown conversion type character 0xa in format [-Wformat=]