Problem | atomsplit |
---|---|
User | BuiNgocDuc |
Submission Time | 2025-06-19 10:11:38 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
atomsplit.cpp: In function ‘int main()’:
atomsplit.cpp:3:5: error: ‘vector’ was not declared in this scope
3 | vector< int > v;
| ^~~~~~
atomsplit.cpp:3:13: error: expected primary-expression before ‘int’
3 | vector< int > v;
| ^~~
atomsplit.cpp:4:5: error: ‘cin’ was not declared in this scope
4 | cin >> n >> t;
| ^~~
atomsplit.cpp:7:9: error: ‘v’ was not declared in this scope
7 | v.push_back( ki );
| ^
atomsplit.cpp:9:11: error: ‘v’ was not declared in this scope
9 | sort( v.begin(), v.end(), greater<int>());
| ^
atomsplit.cpp:9:31: error: ‘greater’ was not declared in this scope
9 | sort( v.begin(), v.end(), greater<int>());
| ^~~~~~~
atomsplit.cpp:9:39: error: expected primary-expression before ‘int’
9 | sort( v.begin(), v.end