运行 ID 作者 题号 测评结果 分数 时间 内存 语言 代码长度 提交时间
465187 Giao 1008 - 平方与立方 编译错误 0 0 MS 0 KB C++ 209 1年前
暂时无法获取本题测试点详情。

Main.cc: In function ‘int main()’:
Main.cc:5:2: error: ‘cin’ was not declared in this scope
5 | cin>>n;
| ^~~
Main.cc:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
Main.cc:13:3: error: ‘cout’ was not declared in this scope
13 | cout<<arr[i]*arr[i]<<" "<<arr[i]*arr[i]*arr[i]<<endl;
| ^~~~
Main.cc:13:3: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
Main.cc:13:51: error: ‘endl’ was not declared in this scope
13 | cout<<arr[i]*arr[i]<<" "<<arr[i]*arr[i]*arr[i]<<endl;
| ^~~~
Main.cc:1:1: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
+++ |+#include <ostream>
1 | using namespace std;