编译失败?

P2433 【深基1-2】小学数学 N 合一

xrk2006 @ 2020-10-29 17:09:23

我想问一下,这段代码在dev上是可以编译成功的,在洛谷上怎么就编译失败了?```

#include<bits/stdc++.h>
using namespace std;
int main() {
    int T;
    cin >> T;
    if (T == 1) {
        cout << "I love Luogu!";
    } else if (T == 2) {
        cout << 2 + 4 << " " << 10 - 2 - 4;
    } else if (T == 3) {
        cout<<14/4<<endl;
        cout<<(14/4)*4<<endl;
        cout<<14-(14/4)*4;
    } else if (T == 4) {
        cout<<fixed<<setprecision(3)<<500/3;
    } else if (T == 5) {
        cout<<(260+220)/(12+20);
    } else if (T == 6) {
        cout<<sqrt(6*6+9*9);
    } else if (T == 7) {
        cout<<100+10<<endl;
        cout<<100+10-20<<endl;
        cout<<"0";
    } else if (T == 8) {
        cout<<2*3.141593*5<<endl;
        cout<<5*5*3.141593<<endl;
        cout<<4/3*5*5*5*3.141593;
    } else if (T == 9) {
        cout<<"22";
    } else if (T == 10) {
        cout<<"9";
    } else if (T == 11) {
        cout<<100/(8-5);
    } else if (T == 12) {
        cout<<"13"<<endl;
        cout<<"R";
    } else if (T == 13) {
        cout<<pow(4/3*3.141593*(4*4*4+10*10*10),1.0*1/3);
    } else if (T == 14) {
        cout<<"40";
    }
    return 0;
}

by Devil_may_cry @ 2020-10-29 17:10:02

luogu爆炸了()


by zhuzhu8127 @ 2020-10-29 17:10:05

洛谷日爆


by Wens @ 2020-10-29 17:10:27

洛谷炸了,评测机废了,哪儿都一样


by __杨舒茵__ @ 2020-10-29 17:10:40

洛谷崩了,我也提交不了


by justinjia @ 2020-10-29 21:24:42

@向日葵Reta 发下编译信息我看看。


|