Problem | splithunny |
---|---|
User | DoubleShaurya |
Submission Time | 2024-01-19 16:49:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
splithunny.cpp:8:49: error: ISO C++ forbids declaration of ‘isValid’ with no type [-fpermissive]
8 | isValid (pair <int, int> index, int row, int col) {
| ^
splithunny.cpp: In function ‘int isValid(std::pair<long long int, long long int>, long long int, long long int)’:
splithunny.cpp:9:18: error: expression cannot be used as a function
9 | if (index.first() >= 0 && index.second() >= 0 && index.first() < row, index.second() < col) {
| ^
splithunny.cpp:9:41: error: expression cannot be used as a function
9 | if (index.first() >= 0 && index.second() >= 0 && index.first() < row, index.second() < col) {
| ^
splithunny.cpp:9:63: error: expression cannot be used as a function
9 | if (index.first() >= 0 && index.second() >= 0 && index.first() < row, index.second() < col) {<