| Problem | seats2 |
|---|---|
| User | minyin |
| Submission Time | 2026-02-11 16:32:58 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
seats2.cpp: In function ‘int main()’:
seats2.cpp:5:5: error: ‘cin’ was not declared in this scope
5 | cin >> S[i];
| ^~~
seats2.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
seats2.cpp:5:15: error: invalid types ‘int[int]’ for array subscript
5 | cin >> S[i];
| ^
seats2.cpp:8:18: error: ‘N’ was not declared in this scope
8 | for(int i=0;i<=N-3;i++){
| ^
seats2.cpp:9:11: error: invalid types ‘int[int]’ for array subscript
9 | if(S[i] ='#' && S[i+1] ='.' && S[i+2] ='#'){
| ^
seats2.cpp:9:26: error: invalid types ‘int[int]’ for array subscript
9 | if(S[i] ='#' && S[i+1] ='.' && S[i+2] ='#'){
| ^
seats2.cpp:9:41: error: invalid types ‘int[int]’ for array