79566601

Date: 2025-04-10 12:13:38
Score: 1
Natty:
Report link
#include <fstream>
#include <cmath>
#include <iomanip>
using namespace std;
ifstream fin ("legos.in");
ofstream fout ("legos.out");
int main()
{
    int c,a;
    fin>>c>>a;
    if (a>=9)
    fout<<trunc(sqrt(a))*trunc(sqrt(a));
    if (a<9)
        fout<<"imposibil";
        fout << fixed;
        fout << setprecision(2) << trunc(sqrt(a))*trunc(sqrt(a));
    return 0;
}

i don't get what is wrong

Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Meredith