# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
445627 | hgmhc | printf 함수 2 (BSC_0_2) | C++17 | 컴파일 에러 | 0 ms | 0 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <iostream>
int main() {
std::cout << R("...______.~...
~.///////\..-.
.///////_'\...
..II%II.+I.,..
..IIIII.nI.P..
""""""""""""""");
}
컴파일 시 표준 에러 (stderr) 메시지
printf2.cpp:3:18: warning: missing terminating " character 3 | std::cout << R("...______.~... | ^ printf2.cpp:3:18: error: missing terminating " character 3 | std::cout << R("...______.~... | ^~~~~~~~~~~~~~~ printf2.cpp:8:15: warning: missing terminating " character 8 | """""""""""""""); | ^ printf2.cpp:8:15: error: missing terminating " character 8 | """""""""""""""); | ^~~ printf2.cpp: In function 'int main()': printf2.cpp:4:2: error: expected primary-expression before '.' token 4 | ~.///////\..-. | ^ printf2.cpp:5:1: error: expected unqualified-id before '.' token 5 | .///////_'\... | ^ printf2.cpp:6:1: error: expected unqualified-id before '.' token 6 | ..II%II.+I.,.. | ^ printf2.cpp:6:2: error: expected unqualified-id before '.' token 6 | ..II%II.+I.,.. | ^ printf2.cpp:6:6: error: 'II' was not declared in this scope 6 | ..II%II.+I.,.. | ^~ printf2.cpp:6:9: error: expected unqualified-id before '+' token 6 | ..II%II.+I.,.. | ^ printf2.cpp:6:10: error: 'I' was not declared in this scope 6 | ..II%II.+I.,.. | ^ printf2.cpp:6:12: error: expected unqualified-id before ',' token 6 | ..II%II.+I.,.. | ^ printf2.cpp:6:13: error: expected primary-expression before '.' token 6 | ..II%II.+I.,.. | ^ printf2.cpp:6:14: error: expected unqualified-id before '.' token 6 | ..II%II.+I.,.. | ^ printf2.cpp:7:1: error: expected unqualified-id before '.' token 7 | ..IIIII.nI.P.. | ^ printf2.cpp:7:2: error: expected unqualified-id before '.' token 7 | ..IIIII.nI.P.. | ^ printf2.cpp:7:14: error: expected unqualified-id before '.' token 7 | ..IIIII.nI.P.. | ^ printf2.cpp:8:1: error: expected unqualified-id before string constant 8 | """""""""""""""); | ^~