Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
96835 罗迎甲 11整数的除法 C++ Compile Error 0 MS 0 KB 195 2024-11-09 16:44:31

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int a,b,c,d; cin>>a>>b; c=a/b; if(a%b==0){ cout<<c<<endl; } d=a%b; else cout<<c<<" "<<d; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:12:2: error: 'else' without a previous 'if'
  else
  ^