Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
96840 | 罗迎甲 | 11整数的除法 | C++ | Compile Error | 0 MS | 0 KB | 224 | 2024-11-09 16:52:24 |
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c,d; cin>>a>>b; c=a/b; d=a%b; if(b!=0) else if(a%b==0){ cout<<c<<endl; } else if(a%b!=0) cout<<c<<" "<<d; return 0; }
Main.cc: In function 'int main()': Main.cc:10:2: error: expected primary-expression before 'else' else if(a%b==0){ ^