Borderou de evaluare (job #2491883)

Utilizator am.001Agricimihai am.001 Data 13 noiembrie 2019 13:55:59
Problema Datorii Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:20:35: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'int*' [-Wformat=] fscanf( fin, "%ld%ld", &n, &m ); ^ main.cpp:20:35: warning: format '%ld' expects argument of type 'long int*', but argument 4 has type 'int*' [-Wformat=] main.cpp:24:37: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'int*' [-Wformat=] fscanf( fin, "%ld", &a[i] ); ^ main.cpp: In function 'void Querry(int, int, int, int, int)': main.cpp:81:6: error: expected primary-expression before '}' token } ^ main.cpp:81:6: error: return-statement with a value, in function returning 'void' [-fpermissive] main.cpp:81:6: error: expected ';' before '}' token main.cpp: In function 'int main()': main.cpp:20:36: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf( fin, "%ld%ld", &n, &m ); ^ main.cpp:24:38: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf( fin, "%ld", &a[i] ); ^ main.cpp:32:46: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf( fin, "%d%d%d", &k, &s, &f ); ^ Non zero exit status: 1

Ceva nu functioneaza?