Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
83706 刘慕莀 图像相似度 C++ Compile Error 0 MS 0 KB 850 2024-07-14 16:33:58

Tests(0/0):


Code:

#include<iostream> #include<cstdio> using namespace std; 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; }#include<iostream> #include<cstdio> using namespace std; 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:35:12: error: stray '#' in program
 return 0; }#include
            ^
Main.cc:35:13: error: 'include' does not name a type
 return 0; }#include
             ^
Main.cc: In function 'int main()':
Main.cc:41:6: error: redefinition of 'int main()'
  int main()
      ^
Main.cc:7:6: note: 'int main()' previously defined here
  int main()
      ^