| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1256274 | nlkn | Hack (APIO25_hack) | C++20 | 0 ms | 0 KiB |
int hack(){
int i=2;
while(i++)if(collisions([1, i]))return i-1;
}
| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1256274 | nlkn | Hack (APIO25_hack) | C++20 | Compilation error | 0 ms | 0 KiB |
hack.cpp: In function 'int hack()':
hack.cpp:3:26: error: expected identifier before numeric constant
3 | while(i++)if(collisions([1, i]))return i-1;
| ^
hack.cpp:3:27: error: expected ']' before ',' token
3 | while(i++)if(collisions([1, i]))return i-1;
| ^
| ]
hack.cpp: In lambda function:
hack.cpp:3:27: error: expected '{' before ',' token
hack.cpp: In function 'int hack()':
hack.cpp:3:30: error: expected ')' before ']' token
3 | while(i++)if(collisions([1, i]))return i-1;
| ~ ^
| )
hack.cpp:3:30: error: expected ')' before ']' token
3 | while(i++)if(collisions([1, i]))return i-1;
| ~ ^
| )
hack.cpp:3:30: error: expected primary-expression before ']' token
hack.cpp:4:1: warning: no return statement in function returning non-void [-Wreturn-type]
4 | }
| ^