Borderou de evaluare (job #2562162)

Utilizator Dobricean_IoanDobricean Ionut Dobricean_Ioan Data 29 februarie 2020 12:33:50
Problema Congr Status done
Runda Arhiva de probleme Compilator c-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.c:4:1: error: unknown type name 'using' using namespace std; ^~~~~ main.c:4:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std' using namespace std; ^~~ main.c:8:11: error: variably modified 'a' at file scope long long a[MAXN],n,p,sum,i; ^ main.c: In function 'main': main.c:23:11: error: expected expression before 'unsigned' srand(unsigned(time(0))); ^~~~~~~~ main.c:33:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for ( i = 1; i <= p; ++i) ^~~ main.c:35:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' return 0; ^~~~~~ main.c:16:5: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%lld",&p); ^~~~~~~~~~~~~~~~~~~~~ main.c:19:9: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%lld",&a[i]); ^~~~~~~~~~~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?