제출 #1342703

#제출 시각아이디문제언어결과실행 시간메모리
1342703po_rag526Toy (CEOI24_toy)C++20
컴파일 에러
0 ms0 KiB
/*
  _      __        __         __        ____                    ___    _                   __
 | | /| / / ___ _ / /_ ____  / /       / __ \  ___  ___        / _ \  (_) ___  ____ ___   / /
 | |/ |/ / / _ `// __// __/ / _ \     / /_/ / / _ \/ -_)      / ___/ / / / -_)/ __// -_) /_/ 
 |__/|__/  \_,_/ \__/ \__/ /_//_/     \____/ /_//_/\__/      /_/    /_/  \__/ \__/ \__/ (_)  
                                                                                             
*/

#pragma GCC optimize("O3")
#pragma GCC optimize ("unroll-loops")
// #pragma GCC target("avx2")
#include <bits/stdc++.h>
#define ll long long
#define ull unsigned ll
#define ld long double
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
#define pb push_back
#define rsz resize
#define fi first
#define se second
#define LMAX LLONG_MAX
#define LMIN LLONG_MIN
#define IMAX INT_MAX
#define IMIN INT_MIN
#define endl "\n"
#define newline cout << endl;
using namespace std;
 
// constants

// functions

// structs

// globals

// notes
/*
My favorite anime is One Piece(obviously)
My oshi(Yes, I have an oshi, deal with it) is Kamil_Tsubaki

 -stuff you should look for-
* int overflow, array bounds
* special cases (n=1?)
* do something instead of nothing and stay organized
* WRITE STUFF DOWN
* DON'T GET STUCK ON ONE APPROACH

continue - skip the rest in the loop
*/
 
void solve()
{
    int n, m, K, L;
    cin >> m >> n >> K >> L;
    int rh, ch, rv, cv;
    cin >> ch >> rh >> cv >> rv;
    vector <vector <char> > v(n + 1, vector <char>(m + 1));
    for (int i = 1; i <= n; i++)
    {
        for (int j = 1; j <= m; j++)
        {
            cin >> v[i][j];
        
    }
    
    
}
 
int main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0);

    int t = 1;
    cin >> t;
    while (t--)
    {
        solve();
        newline
    }
}

/*
$$$$$$$$\ $$$$$$$$\ 
$$  _____|\____$$  |
$$ |          $$  / 
$$$$$\       $$  /  
$$  __|     $$  /   
$$ |       $$  /    
$$$$$$$$\ $$$$$$$$\ 
\________|\________|
*/

컴파일 시 표준 에러 (stderr) 메시지

Main.cpp: In function 'void solve()':
Main.cpp:71:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   71 | int main()
      |         ^~
Main.cpp:71:9: note: remove parentheses to default-initialize a variable
   71 | int main()
      |         ^~
      |         --
Main.cpp:71:9: note: or replace parentheses with braces to value-initialize a variable
Main.cpp:72:1: error: a function-definition is not allowed here before '{' token
   72 | {
      | ^
Main.cpp:83:2: error: expected '}' at end of input
   83 | }
      |  ^
Main.cpp:54:1: note: to match this '{'
   54 | {
      | ^