Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
117504 殷佳雨萱 图像相似度 C++ Compile Error 0 MS 0 KB 425 2025-04-19 11:28:12

Tests(0/0):


Code:

#include <bits/stdc++.h> using namespace std; int a[101][101]; int b[101][101]; int main() { int m,n,x=0; cin>>n>>m; for(int i=0;i<m;i++){ for(int j=0;j<n;j++){ cin>>a[i][j]; } } for(int i=0;i<m;i++){ for(int j=0;j<n;j++){ cin>>b[i][j]; } } for(int i=0;i<m;i++){ for(int j=0;j<n;j++){ if(a[i][j]==b[i][j]){ x++; } } } printf("%.2lf",x*100.0/(m*n)); } }


Run Info:

Main.cc:27:1: error: expected declaration before '}' token
 }
 ^