if不打大括号的后果

tctm132 睿智 2023-03-13 19:33:46 2023-03-13 19:34:09 32
//保留小数:cout<<fixed<<setprecision(1)<<sum;
#include <iomanip>
#include <iostream>
#include<algorithm>
using namespace std;
int main(){
    int a;
    cin>>a;
    if(a%3==0||a%5==0||a%7==0)
    	if(a%3==0) cout<<"3 ";
    	if(a%5==0) cout<<"5 ";
		if(a%7==0) cout<<"7 ";
	
	else cout<<"n";
    return 0;
}     

WA,而且只有50

{{ vote && vote.total.up }}