Submission #1454342


Source Code Expand

#include <cstdio>
#include <algorithm>
#include <string>
#include <iostream>

#define REPi(i, n) for(int i=0; i<n; i++)
#define REPd(i, n) for(int i=n; i>=0; i--)

using namespace std;
using vvc = vector<vector<char>>;

int main(void){
    cin.tie(0);
    ios::sync_with_stdio(false);
    
    vvc board;
    board.resize(4);

    REPi(i, 4){
        board[i].resize(4);
        REPi(j, 4){
            cin >> board[i][j];
        }
    }
    
    REPd(i, 3){
        REPd(j, 3){
            cout << board[i][j] << (j-1>=0 ? ' ' : '\n');
        }
    }
}

Submission Info

Submission Time
Task B - 回転
User halll
Language C++ (GCC 5.4.1)
Score 0
Code Size 587 Byte
Status CE

Compile Error

./Main.cpp:10:7: error: expected nested-name-specifier before ‘vvc’
 using vvc = vector<vector<char>>;
       ^
./Main.cpp: In function ‘int main()’:
./Main.cpp:16:5: error: ‘vvc’ was not declared in this scope
     vvc board;
     ^
./Main.cpp:17:5: error: ‘board’ was not declared in this scope
     board.resize(4);
     ^