Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
1934 | 孙浚轩 | 11整数的除法 | C++ | Compile Error | 0 MS | 0 KB | 228 | 2023-12-02 17:10:36 |
#include<iostream> #include<cstdio> using namespace std; int main() { long long a,b; cin>>a>>b; if(a%b==0) cout<<a/b; else{ printf("%.ld",a/b); cout<<" "<<a%b; return 0; }
Main.cc: In function 'int main()': Main.cc:11:26: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=] printf("%.ld",a/b); ^ Main.cc:14:1: error: expected '}' at end of input } ^