제출 #1304419

#제출 시각아이디문제언어결과실행 시간메모리
1304419bnijaamaaCutting a Rectangle (BOI24_rectangle)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; #define int long long const int mod = 1e9 + 7; const int N = 1e3; const int M = 1e3; int binpow(int a, int b, int mod) { int ans = 1; while (b) { if (b & 1) ans = (ans * a) % mod; a = (a * a) % mod; b >>= 1; } return ans; } signed main() { ios::sync_with_stdio(false); cin.tie(nullptr); int v; cin >> v; vector<pair<int , int>> x(v + 1); for(int i = 1; i <= v ; i++) { cin >> x[i].first >> x[i].second; } for(int i = 1; i <= v - 1; i++) cout << 1 << nn; cout << 2 << nn; }

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

Main.cpp: In function 'int main()':
Main.cpp:28:50: error: 'nn' was not declared in this scope; did you mean 'yn'?
   28 |     for(int i = 1; i <= v - 1; i++) cout << 1 << nn;
      |                                                  ^~
      |                                                  yn
Main.cpp:29:18: error: 'nn' was not declared in this scope; did you mean 'yn'?
   29 |     cout << 2 << nn;
      |                  ^~
      |                  yn