Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
110911 | 罗子童 | 图像相似度 | C++ | Compile Error | 0 MS | 0 KB | 701 | 2025-02-23 18:55:41 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,m,a[101][101],b[101][101],mi=0; cin>>m>>n; for(int i=1;i<=m;i++){ for(int j=1;j<=n;j++) cin>>a[i][j]; } for(int i=1;i<=m;i++){ for(int j=1;j<=n;j++) cin>>a[i][j]; } for(int i=1;i<=m;i++){ for(int j=1;j<=n;j++)} if(a[i][j]=b[i][j]){ mi++ } } } printf("%.2lf",mi*1.0/(n*m)*100); return 0; }
Main.cc: In function 'int main()': Main.cc:19:30: error: expected primary-expression before '}' token for(int j=1;j<=n;j++)} ^ Main.cc:20:18: error: 'i' was not declared in this scope if(a[i][j]=b[i][j]){ ^ Main.cc:20:21: error: 'j' was not declared in this scope if(a[i][j]=b[i][j]){ ^ Main.cc:22:13: error: expected ';' before '}' token } ^ Main.cc: At global scope: Main.cc:24:5: error: expected declaration before '}' token } ^