Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
109555 李朋秦 11整数的除法 C++ Compile Error 0 MS 0 KB 142 2025-02-09 14:57:58

Tests(0/0):


Code:

#include<cstdio> //scanf()\printf() int main(){ int a,b; scanf("%d%d",&a,&b); printf("%d %d",(a/b)(a%b)); return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:29: error: expression cannot be used as a function
     printf("%d %d",(a/b)(a%b));
                             ^
Main.cc:4:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d",&a,&b);
                        ^