Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
852 伊隽诚 02简单两数相加 C++ Compile Error 0 MS 0 KB 109 2023-05-13 14:19:18

Tests(0/0):


Code:

#incoude<iostream> using namespace str; int main() { int a,b; cout<<a+b<<endl; return 0; }


Run Info:

Main.cc:1:2: error: invalid preprocessing directive #incoude
 #incoude
  ^
Main.cc:2:17: error: 'str' is not a namespace-name
 using namespace str;
                 ^
Main.cc:2:20: error: expected namespace-name before ';' token
 using namespace str;
                    ^
Main.cc: In function 'int main()':
Main.cc:6:5: error: 'cout' was not declared in this scope
     cout<a+b<<endl;
     ^
Main.cc:6:16: error: 'endl' was not declared in this scope
     cout<<a+b<<endl;
                ^