Borderou de evaluare (job #622104)

Utilizator avatar matrix.d567 matrix matrix.d567 IP ascuns
Problemă Circular (clasa a 9-a ) Compilator c-32
Rundă lasm_21_12_2021_cl12 Status evaluat
Dată 21 dec. 2021 15:14:04 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:4:11: error: initializer element is not constant 4 | FILE *f = fopen("circular.in", "r"); | ^~~~~ main.c:5:11: error: initializer element is not constant 5 | FILE *g = fopen("circular.out", "w"); | ^~~~~ main.c: In function 'main': main.c:47:15: warning: unknown conversion type character 'U' in format [-Wformat=] 47 | fscanf(f, "%U", &N); fclose(f); | ^ main.c:47:13: warning: too many arguments for format [-Wformat-extra-args] 47 | fscanf(f, "%U", &N); fclose(f); | ^~~~ main.c:47:3: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 47 | fscanf(f, "%U", &N); fclose(f); | ^~~~~~~~~~~~~~~~~~~