Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
96345 陈家渝 05求长方形的周长和面积 C++ Compile Error 0 MS 0 KB 329 2024-11-04 20:55:16

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 main(){ int N M; cin>>N>>M; cout<<(N+M)*2<<N*M; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:11: error: expected initializer before 'M'
     int N M;
           ^
Main.cc:9:10: error: 'N' was not declared in this scope
     cin>>N>>M;
          ^
Main.cc:9:13: error: 'M' was not declared in this scope
     cin>>N>>M;
             ^