Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
101146 胡思齐 求和 C++ Compile Error 0 MS 0 KB 145 2024-12-14 15:10:28

Tests(0/0):


Code:

#include <iostream> using namespace tsd; int main() { int a,b; cin>>a>>b; cout<<"sum is"<<a+b<<endl; return 0; }


Run Info:

Main.cc:4:1: error: stray '\357' in program
 {
 ^
Main.cc:4:1: error: stray '\275' in program
Main.cc:4:1: error: stray '\233' in program
Main.cc:9:1: error: stray '\357' in program
 }
 ^
Main.cc:9:1: error: stray '\275' in program
Main.cc:9:1: error: stray '\235' in program
Main.cc:2:17: error: 'tsd' is not a namespace-name
 using namespace tsd;
                 ^
Main.cc:2:20: error: expected namespace-name before ';' token
 using namespace tsd;
                    ^
Main.cc:5:5: error: expected initializer before 'int'
     int a,b;
     ^
Main.cc:6:5: error: 'cin' does not name a type
     cin>>a>>b;
     ^
Main.cc:7:5: error: 'cout' does not name a type
     cout<<"sum is"<