Borderou de evaluare (job #701369)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Fgetc (clasa a 5-a) | Compilator | c-32 |
Rundă | superoji1 | Status | evaluat |
Dată | 5 mar. 2023 22:20:22 | 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:3:13: error: initializer element is not constant
3 | FILE *fin = fopen("fgetc.in", "r");
| ^~~~~
main.c:4:14: error: initializer element is not constant
4 | FILE *fout = fopen("fgetc.out", "w");
| ^~~~~
main.c: In function 'main':
main.c:13:21: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
13 | fprintf(fout, "%d", nr);
| ~^ ~~
| | |
| int long long int
| %lld