Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
83655 胡盛哲 图像相似度 C++ Compile Error 0 MS 0 KB 461 2024-07-14 16:17:26

Tests(0/0):


Code:

#include <iostream> using namespace std; int a[105][105]; int main() { int main() { int n,m; cin>>n>>m; double c=0; int a[n][m],b[n][m]; for(int i=0; i<n; i++) { for(int j=0; j<m; j++) cin>>a[i][j]; } for(int i=0; i<n; i++) { for(int j=0; j<m; j++) cin>>b[i][j]; } for(int i=0; i<n; i++) { for(int j=0; j<m; j++) { if(a[i][j]==b[i][j]) c++; } } printf("%.2lf",c/(n*m)*100.0); return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:13: error: a function-definition is not allowed here before '{' token
  int main() {
             ^
Main.cc:25:2: error: expected '}' at end of input
  }
  ^