Submission #753523

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
7535232023-06-05 12:31:54ksu2009enCostinland (info1cup19_costinland)C++17
0 / 100
43 ms212 KiB
#include <iostream>
#include <vector>
#include <string>
#include <math.h>
#include <cmath>
#include <iomanip>
#include <cstdio>
#include <algorithm>
#include <numeric>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <deque>
#include <bitset>
#include <cstring>
#include <unordered_map>
using namespace std;
typedef long long ll;
void print(vector<vector<char>>a){
cout << a.size() << ' ' << a[0].size() << endl;
for(auto i : a){
for(auto j: i)
cout << j << ' ';
cout << endl;
}
}
void print(vector<vector<ll>>a){
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

costinland.cpp: In function 'void move_right(ll, ll, ll, std::vector<std::vector<long long int> >&, std::vector<std::vector<char> >&)':
costinland.cpp:39:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   39 |     for(int j2 = j + 1; j2 < dp[0].size(); j2++){
      |                         ~~~^~~~~~~~~~~~~~
costinland.cpp:40:34: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long int'} and 'std::vector<std::vector<long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   40 |         if(a[i][j2] != '.' || (i == dp.size() - 1 && j2 == dp[0].size() - 1)){
      |                                ~~^~~~~~~~~~~~~~~~
costinland.cpp:40:57: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   40 |         if(a[i][j2] != '.' || (i == dp.size() - 1 && j2 == dp[0].size() - 1)){
      |                                                      ~~~^~~~~~~~~~~~~~~~~~~
costinland.cpp: In function 'void move_down(ll, ll, ll, std::vector<std::vector<long long int> >&, std::vector<std::vector<char> >&)':
costinland.cpp:47:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   47 |     for(int i2 = i + 1; i2 < dp.size(); i2++){
      |                         ~~~^~~~~~~~~~~
costinland.cpp:48:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   48 |         if(a[i2][j] != '.' || (i2 == dp.size() - 1 && j == dp[0].size() - 1)){
      |                                ~~~^~~~~~~~~~~~~~~~
costinland.cpp:48:57: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long int'} and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   48 |         if(a[i2][j] != '.' || (i2 == dp.size() - 1 && j == dp[0].size() - 1)){
      |                                                       ~~^~~~~~~~~~~~~~~~~~~
costinland.cpp: In function 'll cnt(std::vector<std::vector<char> >)':
costinland.cpp:61:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   61 |     for(int i = 0; i < a.size(); i++){
      |                    ~~^~~~~~~~~~
costinland.cpp:62:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   62 |         for(int j = 0; j < a[0].size(); j++){
      |                        ~~^~~~~~~~~~~~~
costinland.cpp:63:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   63 |             if(i == a.size() - 1 && j == a[0].size() - 1)
      |                ~~^~~~~~~~~~~~~~~
costinland.cpp:63:39: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   63 |             if(i == a.size() - 1 && j == a[0].size() - 1)
      |                                     ~~^~~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...