제출 #155070

#제출 시각아이디문제언어결과실행 시간메모리
155070arnold518무지개나라 (APIO17_rainbow)C++14
컴파일 에러
0 ms0 KiB
#include <stdio.h> #include <stdlib.h> #include <string.h> int a, b, c, n; int main(){  scanf("%d", &n);  printf("%d", n);  return 0; }

컴파일 시 표준 에러 (stderr) 메시지

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);
    ~~~~~^~~~~~~~~~