Pagini recente »
Borderou de evaluare (job #786896)
|
Borderou de evaluare (job #759477)
|
Borderou de evaluare (job #733768)
|
Borderou de evaluare (job #811198)
|
Borderou de evaluare (job #666191)
Borderou de evaluare (job #666191)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:92:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare]
92 | for ( i = 0; i < m[matrix][posl][posc].v.size() && m[matrix][posl][posc].v[i] == m[matrix][l][c].v[i]; i++ );
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:93:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare]
93 | if ( i < m[matrix][posl][posc].v.size() && m[matrix][l][c].v[i] < m[matrix][posl][posc].v[i] ) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:104:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare]
104 | for ( i = 0; i < m[matrix][posl][posc].v.size(); i++ ) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:22:24: warning: unused variable 'cost' [-Wunused-variable]
22 | int n, i, sum, ans1, cost, l, c, i2, ans2, ct, posl, posc;
| ^~~~
main.cpp:22:36: warning: unused variable 'i2' [-Wunused-variable]
22 | int n, i, sum, ans1, cost, l, c, i2, ans2, ct, posl, posc;
| ^~
main.cpp:22:40: warning: unused variable 'ans2' [-Wunused-variable]
22 | int n, i, sum, ans1, cost, l, c, i2, ans2, ct, posl, posc;
| ^~~~
main.cpp:25:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
25 | fscanf(fin, "%d", &n);
| ~~~~~~^~~~~~~~~~~~~~~
main.cpp:29:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
29 | fscanf(fin, "%d", &v[i]);
| ~~~~~~^~~~~~~~~~~~~~~~~~
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
1 ms
|
372 kb
|
OK
|
10
|
2
|
1 ms
|
376 kb
|
OK
|
10
|
3
|
1 ms
|
245 kb
|
OK
|
10
|
4
|
9 ms
|
512 kb
|
OK
|
10
|
5
|
46 ms
|
1818 kb
|
OK
|
10
|
6
|
56 ms
|
2076 kb
|
OK
|
10
|
7
|
56 ms
|
2342 kb
|
OK
|
10
|
8
|
69 ms
|
2740 kb
|
OK
|
10
|
9
|
73 ms
|
2867 kb
|
OK
|
10
|
10
|
1 ms
|
245 kb
|
OK
|
10
|
Punctaj total
|
100
|