Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
152880 彭俊熙 06输出菱形 C++ Compile Error 0 MS 0 KB 178 2026-05-05 13:34:18

Tests(0/0):


Code:

#include<iostream>; using namespace std; int main(){ cout<<"\\"<<endl; printf("%2d\n",n); cout<<"\\\\\\\\\\"<<endl; cout<<"\\\\\\"<<endl; cout<<"\\"<<endl; return 0; }


Run Info:

Main.cc:1:19: warning: extra tokens at end of #include directive
 #include;
                   ^
Main.cc: In function 'int main()':
Main.cc:5:16: error: 'n' was not declared in this scope
 printf("%2d\n",n);
                ^