Submission #3198534


Source Code Expand

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;

int main() {
    int h, w;
    cin >> h >> w;
    int sharp = 0;
    for(int i = 0; i < n; i++){
        char t;
        cin >> t;
        if(t=='#'){sharp++;}
    }
    if(sharp == h+w-1){
        cout << "Possible" << endl;
    }else{
        cout << "Impossible" << endl;
    }
    return 0;
}

Submission Info

Submission Time
Task A - Shik and Stone
User kujira438x
Language C++14 (GCC 5.4.1)
Score 0
Code Size 440 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:11:24: error: ‘n’ was not declared in this scope
     for(int i = 0; i < n; i++){
                        ^