Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
95790 | 揭伟琦 | 图像相似度 | C++ | Compile Error | 0 MS | 0 KB | 370 | 2024-11-02 11:11:09 |
# include<iostream> using namespace std; int a[100][100]; int b[100][100]; int main(){ int n,m,k=0; cin >>n>>m; for(int i=0;i<=n-1;i++){ for(int j=0;j<=m-1;j++){ cin >>a[i][j]; } } for(int i=0;i<=n-1;i++){ for(int j=0;j<m-1;j++){ cin >>b[i][j]; if(a[i][j]==b[i][j]){ k++; } } } cout <<"%.2lf"k/(n*m)*100; return 0; }
Main.cc: In function 'int main()': Main.cc:21:9: error: unable to find string literal operator 'operator""k' with 'const char [6]', 'long unsigned int' arguments cout <<"%.2lf"k/(n*m)*100; ^