Borderou de evaluare (job #616385)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Apariții 2 (clasa a 7-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 15 nov. 2021 20:36:55 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c:2:1: error: unknown type name 'using'
2 | using namespace std;
| ^~~~~
main.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
2 | using namespace std;
| ^~~
main.c:20:39: error: unknown type name 'bool'
20 | static inline void Fill(int i, int j, bool &ok) {
| ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
1 | #include <stdio.h>
+++ |+#include <stdbool.h>
2 | using namespace std;
main.c: In function 'Find':
main.c:30:7: error: unknown type name 'bool'
30 | bool ok = 0;
| ^~~~
main.c:30:7: note: 'bool' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
main.c:31:7: warning: implicit declaration of function 'Fill' [-Wimplicit-function-declaration]
31 | Fill(i, 0, ok);
| ^~~~