# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1144906 | 2025-02-04 03:46:38 | modwwe | Robots (APIO13_robots) | C++17 | Compilation error | 0 ms | 0 KiB |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Compilation message (stderr)
robots.cpp:78:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 78 | main() | ^~~~ robots.cpp:97:1: error: expected initializer before 'void' 97 | void phongbeo() | ^~~~ robots.cpp: In function 'int main()': robots.cpp:12:23: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | #define fin(x) freopen(x".inp","r",stdin) | ~~~~~~~^~~~~~~~~~~~~~~~~~~ robots.cpp:82:9: note: in expansion of macro 'fin' 82 | fin(task2); | ^~~ robots.cpp:13:23: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 13 | #define fou(x) freopen(x".out","w",stdout) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~ robots.cpp:83:9: note: in expansion of macro 'fou' 83 | fou(task2); | ^~~ robots.cpp:12:23: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | #define fin(x) freopen(x".inp","r",stdin) | ~~~~~~~^~~~~~~~~~~~~~~~~~~ robots.cpp:87:9: note: in expansion of macro 'fin' 87 | fin(task); | ^~~ robots.cpp:13:23: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 13 | #define fou(x) freopen(x".out","w",stdout) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~ robots.cpp:88:9: note: in expansion of macro 'fou' 88 | fou(task); | ^~~