Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
126184 袁梓豪 11整数的除法 C++ Compile Error 0 MS 0 KB 165 2025-07-16 16:15:26

Tests(0/0):


Code:

#include<cstdio> using namespace std; int main() { int a,b; cin>>a>>b; if(a/b!=0) cout<<a/b<<" "<<a%b; else cout<<a/b; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:5: error: 'cin' was not declared in this scope
     cin>>a>>b;
     ^
Main.cc:6:16: error: 'cout' was not declared in this scope
     if(a/b!=0) cout<