Submission #2120975


Source Code Expand

#include <iostream>
using namespace std;
int f(int n) { return floor((n*n+4.0)/8.0); }

int main() {
cout << f(f(f(20))) << endl;
return 0;
}

Submission Info

Submission Time
Task A - 天下一合成関数
User xoke
Language C++14 (GCC 5.4.1)
Score 0
Code Size 148 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int f(int)’:
./Main.cpp:3:42: error: ‘floor’ was not declared in this scope
 int f(int n) { return floor((n*n+4.0)/8.0); }
                                          ^