| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 79256 | 罗迎甲 | 输出较大的数 | C++ | Compile Error | 0 MS | 0 KB | 396 | 2024-06-30 16:10:24 |
#include<iostream> #include<cstdio> using namespace std; int main(){ int a,b; char c; scanf("%d%c%d",&a%c&b); if(a>=b) cout<<"max="<<a; if(a<=b) cout<<"max="<<b; return 0; } #include<iostream> #include<cstdio> using namespace std; int main(){ int a,b; char c; scanf("%d%c%d",&a%c&b); if(a>=b) cout<<"max="<<a; if(a<=b) cout<<"max="<<b; return 0; }
Main.cc: In function 'int main()':
Main.cc:7:20: error: invalid operands of types 'int*' and 'char' to binary 'operator%'
scanf("%d%c%d",&a%c&b);
^
Main.cc: In function 'int main()':
Main.cc:18:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:4:5: note: 'int main()' previously defined here
int main(){
^
Main.cc:21:20: error: invalid operands of types 'int*' and 'char' to binary 'operator%'
scanf("%d%c%d",&a%c&b);
^