자유 게시판

> 커뮤니티 > 자유 게시판

프로그램 코드에 티이가 등장 ㅡ_ㅡ;;

  • 칡흙신
  • 2025-08-14 17:47
  • https://heroes.nexon.com/common/postview?b=70&n=3234


// 티이가 기다려 멈춰버린다. ㅇ_ㅇ;;

ios::sync_with_stdio(false);

cin.tie(nullptr);


ios::sync_with_stdio(false); cin.tie(nullptr); 는 C++ 코드에서 입출력 속도를 향상시키기 위해 사용되는 구문입니다.

이 구문은 C와 C++ 표준 스트림의 동기화를 해제하고,

cin과 cout이 묶여 있는 것을 분리하여 입력과 출력을 더 빠르게 처리할 수 있도록 합니다.


도스 명령어 프롬프트 속성에서 버퍼 크기를 작게 할 수 있다.



//

main.cpp [Error] expected unqualified-id before '[' token


main.cpp [Error] no matching function for call to 'BigInteger::BigInteger(std::tuple


auto [g,x1,y1] = egcd(B, A%B);


BigInteger a, b, c;

std::tie(a, b, c) = t; // extract tuple into separate variables


BigInteger x = std::get0(t); // get first element





//

auto [n,e,d] = rsa_keygen(bitsEachPrime);


BigInteger n,e,d;

RSAKeyPair rsa = (RSAKeyPair) rsa_keygen(bitsEachPrime); // extract tuple into separate variables

n = rsa.n;

e = rsa.e;

d = rsa.d;



//

main.cpp [Error] converting to 'std::tupleBigInteger, BigInteger, BigInteger' from initializer list would use explicit constructor 'constexpr std::tuple template-parameter-1-1 ::tuple(_UElements&& ...) [with _UElements = {BigInteger&, BigInteger, BigInteger}; template-parameter-2-2 = void; _Elements = {BigInteger, BigInteger, BigInteger}]'


return (std::tupleBigInteger, BigInteger, BigInteger) {a, BigInteger(1), BigInteger(0)};



//

main.cpp [Error] 'std::string' has no member named 'back'

-std=c++11



//

튜플(Tuple) 프로그래밍이 인기 ㅇ_ㅇ

http://heroes.nexon.com/community/tipbbs/view?postno=4706&bbsno=63



















키워드
일반

premier칡흙신

Lv.115 이비

에르그 만드는

댓글 16

로그인 후 이용하실 수 있습니다

글을 등록하실 때는 타인을 존중해 주시기 바랍니다. 타인을 비방하거나 개인 정보를 유출할 경우,
운영 정책에 의하여 제재를 받거나 관련 법에 의하여 처벌을 받을 수 있습니다.