실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:12:5: error: ‘string’ was not declared in this scope 12 | string str; | ^~~~~~ Main.cpp:13:5: error: ‘cin’ was not declared in this scope 13 | cin >> str; | ^~~ Main.cpp:13:12: error: ‘str’ was not declared in this scope; did you mean ‘std’? 13 | cin >> str; | ^~~ | std Main.cpp:14:5: error: ‘stack’ was not declared in this scope 14 | stack<char> op; | ^~~~~ Main.cpp:14:11: error: expected primary-expression before ‘char’ 14 | stack<char> op; | ^~~~ Main.cpp:15:5: error: ‘vector’ was not declared in this scope 15 | vector<char> output; | ^~~~~~ Main.cpp:15:12: error: expected primary-expression before ‘char’ 15 | vector<char> output; | ^~~~ Main.cpp:18:13: error: ‘isalpha’ was not declared in this scope 18 | if (isalpha(c)) { | ^~~~~~~ Main.cpp:19:13: error: ‘output’ was not declared in this scope 19 | output.push_back(c); | ^~~~~~ Main.cpp:21:13: error: ‘op’ was not declared in this scope 21 | op.push(c); | ^~ Main.cpp:23:21: error: ‘op’ was not declared in this scope 23 | while (!op.empty() && op.top() != '(') { | ^~ Main.cpp:24:17: error: ‘output’ was not declared in this scope 24 | output.push_back(op.top()); | ^~~~~~ Main.cpp:27:18: error: ‘op’ was not declared in this scope 27 | if (!op.empty()) op.pop(); // '(' 제거 | ^~ Main.cpp:29:21: error: ‘op’ was not declared in this scope 29 | while (!op.empty() && getPriority(op.top()) >= getPriority(c)) { | ^~ Main.cpp:31:17: error: ‘output’ was not declared in this scope 31 | output.push_back(op.top()); | ^~~~~~ Main.cpp:34:13: error: ‘op’ was not declared in this scope 34 | op.push(c); | ^~ Main.cpp:38:13: error: ‘op’ was not declared in this scope 38 | while (!op.empty()) { | ^~ Main.cpp:39:9: error: ‘output’ was not declared in this scope 39 | output.push_back(op.top()); | ^~~~~~ Main.cpp:43:19: error: ‘output’ was not declared in this scope 43 | for (char c : output) { | ^~~~~~ Main.cpp:44:9: error: ‘cout’ was not declared in this scope 44 | cout << c; | ^~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.