답안 #155070

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
155070 2019-09-26T05:32:08 Z arnold518 무지개나라 (APIO17_rainbow) C++14
컴파일 오류
0 ms 0 KB
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int a, b, c, n;
int main(){
  scanf("%d", &n);
  printf("%d", n);
  return 0;
}

Compilation message

rainbow.cpp:6:2: error: stray '\302' in program
   scanf("%d", &n);
  ^
rainbow.cpp:6:3: error: stray '\240' in program
   scanf("%d", &n);
   ^
rainbow.cpp:7:2: error: stray '\302' in program
   printf("%d", n);
  ^
rainbow.cpp:7:3: error: stray '\240' in program
   printf("%d", n);
   ^
rainbow.cpp:8:2: error: stray '\302' in program
   return 0;
  ^
rainbow.cpp:8:3: error: stray '\240' in program
   return 0;
   ^
rainbow.cpp: In function 'int main()':
rainbow.cpp:6:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d", &n);
    ~~~~~^~~~~~~~~~