Pagini recente » Borderou de evaluare (job #1898231) | Borderou de evaluare (job #2987797) | Borderou de evaluare (job #398853) | Borderou de evaluare (job #3240899) | Borderou de evaluare (job #1436130)
Borderou de evaluare (job #1436130)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:31:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=]
fscanf(fin, "%d", &a[i]);
^
user.cpp:35:56: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
fprintf(fout, "%d\n", a[n - 1] * a[n - 2] * a[n - 3]);
^
user.cpp:39:89: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
((a[0] * a[1])>(a[n - 1] * a[n - 2])) ? fprintf(fout, "%d\n", a[0] * a[1] * a[n - 1]) : fprintf(fout, "%d\n", a[n - 1] * a[n - 2] * a[n - 3]);
^
user.cpp:39:145: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
((a[0] * a[1])>(a[n - 1] * a[n - 2])) ? fprintf(fout, "%d\n", a[0] * a[1] * a[n - 1]) : fprintf(fout, "%d\n", a[n - 1] * a[n - 2] * a[n - 3]);
^
user.cpp:42:57: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
fprintf(fout, "%d\n", a[n - 1] * a[n - 2] * a[n - 3]);
^
user.cpp:26:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &T);
^
user.cpp:29:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &n);
^
user.cpp:31:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &a[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | Depăşit | 316kb | Time limit exceeded. | 0 |
Punctaj total | 0 |