Pagini recente » Borderou de evaluare (job #2672048) | Borderou de evaluare (job #2057543) | Borderou de evaluare (job #2817068) | Borderou de evaluare (job #2885850) | Borderou de evaluare (job #2532349)
Borderou de evaluare (job #2532349)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:9:26: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long unsigned int*' [-Wformat=]
fscanf(f,"%d%d",&t,&n);
^
main.cpp:9:26: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long unsigned int*' [-Wformat=]
main.cpp:17:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=9;i<=n;i++)
~^~~
main.cpp:48:28: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long unsigned int' [-Wformat=]
fprintf(g,"%d",cur2);
^
main.cpp:52:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1;i<=n-1;i++)
~^~~~~
main.cpp:52:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=1;i<=n-1;i++)
^~~
main.cpp:54:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
fprintf(g,"%d ",n-1);
^~~~~~~
main.cpp:54:32: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long unsigned int' [-Wformat=]
fprintf(g,"%d ",n-1);
^
main.cpp:9:27: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d%d",&t,&n);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 2ms | 131kb | Corect! | 2 |
| 2 | 3ms | 131kb | Corect! | 2 |
| 3 | 2ms | 131kb | Corect! | 2 |
| 4 | 2ms | 131kb | Corect! | 2 |
| 5 | 2ms | 131kb | Corect! | 2 |
| 6 | 2ms | 131kb | Corect! | 2 |
| 7 | 3ms | 131kb | Corect! | 2 |
| 8 | 3ms | 131kb | Corect! | 2 |
| 9 | 3ms | 131kb | Corect! | 2 |
| 10 | 3ms | 131kb | Corect! | 2 |
| 11 | 2ms | 131kb | Corect! | 8 |
| 12 | 2ms | 131kb | Incorrect! | 0 |
| 13 | 2ms | 131kb | Incorrect! | 0 |
| 14 | 2ms | 131kb | Incorrect! | 0 |
| 15 | 2ms | 131kb | Incorrect! | 0 |
| 16 | 2ms | 131kb | Incorrect! | 0 |
| 17 | 2ms | 131kb | Incorrect! | 0 |
| 18 | 2ms | 131kb | Incorrect! | 0 |
| 19 | 2ms | 131kb | Incorrect! | 0 |
| 20 | 2ms | 131kb | Incorrect! | 0 |
| Punctaj total | 28 |