| Problem | exam |
|---|---|
| User | Helloworld |
| Submission Time | 2026-01-21 17:06:10 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
exam.cpp: In function ‘int main()’:
exam.cpp:8:11: error: expected ‘;’ before ‘if’
8 | x = 1
| ^
| ;
9 | if (x == 1);
| ~~
exam.cpp:10:14: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
10 | printf('Hello World');
| ^~~~~~~~~~~~~
| |
| int
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:46,
from exam.cpp:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:105:32: note: initializing argument 1 of ‘int printf(const char*, ...)’
105 | printf (const char *__restrict __fmt, ...)
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~