Borderou de evaluare (job #3242072)

Utilizator CondoracheAlexandruCondorache Alexandru CondoracheAlexandru Data 8 septembrie 2024 15:53:11
Problema Sortare prin comparare Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void solve()': main.cpp:47:21: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=] 47 | fscanf(input, "%d", &n); | ~^ ~~ | | | | | long long int* | int* | %lld main.cpp:50:25: warning: format '%d' expects argument of type 'int*', but argument 3 has type '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type*' {aka 'long long int*'} [-Wformat=] 50 | fscanf(input, "%d", &a[i]); | ~^ | | | int* | %lld main.cpp:54:27: warning: format '%d' expects argument of type 'int', but argument 3 has type '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} [-Wformat=] 54 | fprintf(output, "%d", a[i]); | ~^ | | | int | %lld At global scope: cc1plus: error: '::main' must return 'int' Non zero exit status: 1

Ceva nu functioneaza?