编译失败?
查看原帖
编译失败?
341245
xrk2006楼主2020/10/29 17:09

我想问一下,这段代码在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;
}
2020/10/29 17:09
加载中...