Submission #1183833

#TimeUsernameProblemLanguageResultExecution timeMemory
1183833aminjon__Treasure Hunt (CEOI11_tre)C++17
Compilation error
0 ms0 KiB
int32_t current_point32_t; void init() { current_point32_t = 1; } void path(int32_t a, int32_t s) { current_point32_t += s; } int32_t dig(int32_t a, int32_t b) { return (a + b + current_point32_t) / 3; /* something stupid */ }

Compilation message (stderr)

Main.cpp:1:1: error: 'int32_t' does not name a type
    1 | int32_t current_point32_t;
      | ^~~~~~~
Main.cpp:1:1: note: 'int32_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
  +++ |+#include <cstdint>
    1 | int32_t current_point32_t;
Main.cpp: In function 'void init()':
Main.cpp:5:3: error: 'current_point32_t' was not declared in this scope
    5 |   current_point32_t = 1;
      |   ^~~~~~~~~~~~~~~~~
Main.cpp: At global scope:
Main.cpp:9:6: error: variable or field 'path' declared void
    9 | void path(int32_t a, int32_t s)
      |      ^~~~
Main.cpp:9:11: error: 'int32_t' was not declared in this scope
    9 | void path(int32_t a, int32_t s)
      |           ^~~~~~~
Main.cpp:9:11: note: 'int32_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
Main.cpp:9:22: error: 'int32_t' was not declared in this scope
    9 | void path(int32_t a, int32_t s)
      |                      ^~~~~~~
Main.cpp:9:22: note: 'int32_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
Main.cpp:15:1: error: 'int32_t' does not name a type
   15 | int32_t dig(int32_t a, int32_t b)
      | ^~~~~~~
Main.cpp:15:1: note: 'int32_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?