답안 #21154

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
21154 2017-04-06T08:26:14 Z jayceking if-else 문 1 (BSC_0_8) C++14
100 / 100
0 ms 1116 KB
#include<cstdio>

int main() {
	int t1;
	scanf("%d", &t1);
	printf("%szero", t1 ? "non" : "");
}

Compilation message

if1.cpp: In function 'int main()':
if1.cpp:5:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d", &t1);
                  ^

# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 1116 KB Output is correct
2 Correct 0 ms 1116 KB Output is correct
3 Correct 0 ms 1116 KB Output is correct
4 Correct 0 ms 1116 KB Output is correct
5 Correct 0 ms 1116 KB Output is correct
6 Correct 0 ms 1116 KB Output is correct
7 Correct 0 ms 1116 KB Output is correct
8 Correct 0 ms 1116 KB Output is correct
9 Correct 0 ms 1116 KB Output is correct
10 Correct 0 ms 1116 KB Output is correct