Borderou de evaluare (job #701621)

Utilizator avatar StefanDutu Dutu Stefan StefanDutu IP ascuns
Problemă Fgetc (clasa a 5-a) Compilator c-32
Rundă superoji1 Status evaluat
Dată 6 mar. 2023 15:37:33 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:8:19: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long long int *' [-Wformat=] 8 | fscanf(fin, "%d", &nr); | ~^ ~~~ | | | | | long long int * | int * | %lld main.c:9:21: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=] 9 | fprintf(fout, "%d", nr); | ~^ ~~ | | | | int long long int | %lld main.c:8:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 8 | fscanf(fin, "%d", &nr); | ^~~~~~~~~~~~~~~~~~~~~~