Submission #155070

# Submission time Handle Problem Language Result Execution time Memory
155070 2019-09-26T05:32:08 Z arnold518 Land of the Rainbow Gold (APIO17_rainbow) C++14
Compilation error
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);
    ~~~~~^~~~~~~~~~