Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
77096 任星宇 04保留两位小数 C++ Compile Error 0 MS 0 KB 169 2024-06-08 12:13:37

Tests(0/0):


Code:

#include <iostream> using namespace std; int main(){ double a,b,c; scanf("%a,%lld"&a,&b); c=a/b; printf(" %2lf",c); return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:21: error: invalid operands of types 'const char [8]' and 'double' to binary 'operator&'
     scanf("%a,%lld"&a,&b);
                     ^