QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#757739 | #9629. 小 C 的神秘图形 | wangji1 | Compile Error | / | / | C++17 | 250b | 2024-11-17 13:02:55 | 2024-11-17 13:02:56 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin >> n;
string a, b;
cin >> a >> b;
for (int i = 0; i < n; i++) if(a[i] == '1' or b[i] == '1') {
} else {
cout << 0 << '\n';
return;
}
cout << 1 << '\n';
}
Details
answer.code: In function ‘int main()’: answer.code:12:17: error: return-statement with no value, in function returning ‘int’ [-fpermissive] 12 | return; | ^~~~~~