Submission #20067

#TimeUsernameProblemLanguageResultExecution timeMemory
20067suiif-else 문 1 (BSC_0_8)C++14
Compilation error
0 ms0 KiB
#include <iostream>
using namespace std;

#include <vector>
#include <stack>
#include <cassert>







int main() {

	int x; cin >> x;

	puts(x ? "nonzero" ? "zero");

	return 0;
}

Compilation message (stderr)

if1.cpp: In function ‘int main()’:
if1.cpp:18:29: error: expected ‘:’ before ‘)’ token
  puts(x ? "nonzero" ? "zero");
                             ^
if1.cpp:18:29: error: expected primary-expression before ‘)’ token
if1.cpp:18:29: error: expected ‘:’ before ‘)’ token
if1.cpp:18:29: error: expected primary-expression before ‘)’ token