Submission #3613103
Source Code Expand
#include <iostream> #include <string> using namespace std; int main(){ int h, w; string s; int ansi, ansj; cin >> h >> w; for ( int i = 0; i < h; i++ ){ for ( int j = 0; j < w; j++){ cin >> s; if ( s == "snuke" ){ ansi = i; ansj = j; } } } char c = 'A' + ansj cout << c << ansi + 1 << endl; }
Submission Info
Submission Time | |
---|---|
Task | A - Where's Snuke? |
User | kenta0000 |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 375 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:21:3: error: expected ‘,’ or ‘;’ before ‘cout’ cout << c << ansi + 1 << endl; ^