Borderou de evaluare (job #2510634)

Utilizator serban.ionescuionescu serban mihai serban.ionescu Data 16 decembrie 2019 23:38:40
Problema Sum Max Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 15

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:10:34: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=] fscanf(f,"%d%d%d%d",&t,&n,&dr,&st); ^ main.cpp:10:34: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=] main.cpp:10:34: warning: format '%d' expects argument of type 'int*', but argument 5 has type 'long long int*' [-Wformat=] main.cpp:10:34: warning: format '%d' expects argument of type 'int*', but argument 6 has type 'long long int*' [-Wformat=] main.cpp:11:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=] fscanf(f,"%d",&v[1]); ^ main.cpp:17:28: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=] fscanf(f,"%d",&v[j]); ^ main.cpp:16:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(int j=1;j<=k;j++) ^~~ main.cpp:18:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' for(int i=1;i<=k;i++) ^~~ main.cpp:52:25: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=] fprintf(g,"%d",aparfinal); ^ main.cpp:10:35: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d%d%d%d",&t,&n,&dr,&st); ^ main.cpp:11:21: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&v[1]); ^ main.cpp:17:29: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&v[j]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK5
2101ms262kbOK5
3228ms131kbIncorect0
4360ms131kbOK5
53ms131kbIncorect0
62ms131kbIncorect0
73ms131kbIncorect0
84ms131kbIncorect0
946ms196kbIncorect0
1072ms131kbIncorect0
11167ms200kbIncorect0
12186ms196kbIncorect0
13181ms221kbIncorect0
14179ms196kbIncorect0
15187ms192kbIncorect0
16160ms131kbIncorect0
17203ms131kbIncorect0
18305ms192kbIncorect0
19321ms262kbIncorect0
20367ms196kbIncorect0
Punctaj total15

Ceva nu functioneaza?