Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
65632 刘津希 求和 C++ Compile Error 0 MS 0 KB 113 2024-01-30 15:41:55

Tests(0/0):


Code:

#include<iostream> useing namepace std; int main(){ int a = 123,b = 456; cout << "sum = " << a + b; }


Run Info:

Main.cc:2:1: error: 'useing' does not name a type
 useing namepace std;
 ^
Main.cc: In function 'int main()':
Main.cc:5:5: error: 'cout' was not declared in this scope
     cout << "sum = " << a + b;
     ^
Main.cc:5:5: note: suggested alternative:
In file included from Main.cc:1:0:
/usr/include/c++/5/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^