Didesnis - gudresnis?
Taškai: 0
Compile: FAIL
drambliai.cpp: In function ‘int main()’: drambliai.cpp:12:46: error: expected ‘;’ before ‘for’ 12 | sort(a, a+n, greater<pair<int, int> >()) | ^ | ; 13 | for (int i=0; i<n; i++) | ~~~ drambliai.cpp:13:20: error: ‘i’ was not declared in this scope 13 | for (int i=0; i<n; i++) | ^ drambliai.cpp:22:21: error: ‘ats’ was not declared in this scope; did you mean ‘abs’? 22 | if (kiek[i]>ats) ats=kiek[i]; | ^~~ | abs drambliai.cpp:24:13: error: ‘ats’ was not declared in this scope; did you mean ‘abs’? 24 | cout << ats << endl; | ^~~ | abs
nr. | result | time | message |
---|