Submission #2697292
Source Code Expand
#include <iostream> #include <string> using namespace std; int main(){ int N,x,y,max_len=0; cin >> N; for(int i = 0;i < N;i++){ cin >> x >> y; max_len = max(max_len,sqrt(int(pow(x,2) + pow(y,2)))) } cout << max_len << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - 2点間距離の最大値 ( The longest distance ) |
User | Bondo416 |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 293 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:10:47: error: ‘pow’ was not declared in this scope max_len = max(max_len,sqrt(int(pow(x,2) + pow(y,2)))) ^ ./Main.cpp:10:60: error: ‘sqrt’ was not declared in this scope max_len = max(max_len,sqrt(int(pow(x,2) + pow(y,2)))) ^