Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
89244 殷佳雨萱 05求长方形的周长和面积 C++ Compile Error 0 MS 0 KB 161 2024-08-23 13:59:41

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ long long N M; cin>>N>>M; cout<<(N+M)*2<<endl; cout<<N*M<<endl; return 0; }


Run Info:

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