Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
103263 郑雨心 04圆的面积 C++ Compile Error 0 MS 0 KB 143 2024-12-28 15:19:13

Tests(0/0):


Code:

#include <iostream> using namespace std; int main() { double r,s; cin>>r1; cout<<"s1="<<3.1415926*r1*r1<<endl; return 0; ]


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:10: error: 'r1' was not declared in this scope
     cin>>r1;
          ^
Main.cc:9:1: error: expected primary-expression before ']' token
 ]
 ^
Main.cc:5:12: warning: unused variable 'r' [-Wunused-variable]
     double r,s;
            ^
Main.cc:5:14: warning: unused variable 's' [-Wunused-variable]
     double r,s;
              ^
Main.cc:9:1: error: expected '}' at end of input
 ]
 ^