Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
123464 高晨骏 [在线测评解答教程] A+B Problem C++ Compile Error 0 MS 0 KB 291 2025-07-04 20:14:22

Tests(0/0):


Code:

#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 a, b cin>>a>>b cout<<a+b<< return 0; }


Run Info:

Main.cc:8:1: error: expected initializer before 'cin'
 cin>>a>>b
 ^
Main.cc:11:1: error: expected declaration before '}' token
 }
 ^