大佬帮忙看看,主要是c++编译成功洛谷里编译失败(大悲

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

cinemaaa @ 2023-08-27 11:05:41

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int t;
    double p=3.141593;
    cin>>t;
    if(t==1){
        cout<<"I love Luogu!";
    }
    if(t==2){
        cout<<6<<' '<<4;
    }
    if(t==3){
        cout<<3<<endl<<12<<endl<<2;
    }
    if(t==4){
        cout<<fixed<<setprecision(3)<<500/3.0;
    }
    if(t==5){
        cout<<15;
    }
    if(t==6){
        cout<<sqrt(6*6+9*9);
    }
    if(t==7){
        cout<<110<<endl<<90<<endl<<0;
    }
    if(t==8){
        cout<<cout<<p*10<<endl<<p*25<<endl<<4/3*p*125;
    }
    if(t==9){
        cout<<22;
    }
    if(t==10){
        cout<<9;
    }
    if(t==11){
        cout<<100/3.0;
    }
    if(t==12){
        cout<<(int)'M'-'A'+1<<endl<<(char)'A'+17;
    }
    if(t==13){
        cout<<(int)pow(4/3*p*4*4*1.0+p*10*10*1.0,1.0/3);
    }
    if(t==14){
        cout<<50;
    }
}

by FurippuWRY @ 2023-08-27 11:07:34

@cinemaaa 多打了个cout


by FurippuWRY @ 2023-08-27 11:07:47

t==8 那里


by FurippuWRY @ 2023-08-27 11:08:07

你这 8 12 13答案是错的


by xiazeyu123 @ 2023-08-27 11:09:14

cout<<cout<<p*10<<endl<<p*25<<endl<<4/3*p*125;

cout<<cout ???


by cinemaaa @ 2023-08-27 11:09:23

@FurippuWRY 好的谢谢,已回关


by Allen15 @ 2023-08-27 11:11:15

t==8有两个cout

@cinemaaa

你谷不支持两个cout


by cinemaaa @ 2023-08-27 11:12:00

@Pyc13396552753 已改,谢,已回关


|