Pagini recente » Borderou de evaluare (job #1153180) | Cod sursa (job #877751) | Borderou de evaluare (job #2603862) | Borderou de evaluare (job #2658980) | Borderou de evaluare (job #2341434)
Borderou de evaluare (job #2341434)
Raport evaluator
Compilare:
main.cpp: In function 'void sortare()':
main.cpp:43:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<g[x].size();i++)
~^~~~~~~~~~~~
main.cpp: In function 'void dfsMin(int)':
main.cpp:61:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<g[nod].size();j++)
~^~~~~~~~~~~~~~
main.cpp: In function 'void dfsMax(int)':
main.cpp:76:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<gt[nod].size();j++)
~^~~~~~~~~~~~~~~
main.cpp: In function 'void citire()':
main.cpp:14:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &n);
^
main.cpp:16:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ", &c[i]);
^
main.cpp:20:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ", &nr);
^
main.cpp:23:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ", &x);
^
main.cpp: In function 'int main()':
main.cpp:116:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("pm2.in", "r", stdin);
^
main.cpp:117:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("pm2.out", "w", stdout);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 2ms | 131kb | OK! | 10 |
| 2 | 2ms | 131kb | A doua valoare gresita! | 7 |
| 3 | 2ms | 131kb | OK! | 10 |
| 4 | 2ms | 131kb | A doua valoare gresita! | 7 |
| 5 | 4ms | 262kb | OK! | 10 |
| 6 | 4ms | 262kb | OK! | 10 |
| 7 | 2ms | 131kb | OK! | 10 |
| 8 | 3ms | 131kb | OK! | 10 |
| 9 | 3ms | 131kb | OK! | 10 |
| 10 | 2ms | 131kb | OK! | 10 |
| Punctaj total | 94 |