Submission #155070

#TimeUsernameProblemLanguageResultExecution timeMemory
155070arnold518Land of the Rainbow Gold (APIO17_rainbow)C++14
Compilation error
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;
}

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