Submission #1002198

#TimeUsernameProblemLanguageResultExecution timeMemory
1002198vjudge1Robots (APIO13_robots)C++17
0 / 100
0 ms348 KiB
#include<bits/stdc++.h> using namespace std; #define int long long #define ll long double #define MP make_pair #define pii pair<int , int> #define in insert #define pb push_back #define pf push_front #define ppb pop_back() #define ppf pop_front() #define B begin() #define E end() #define F first #define S second #define sz size() const int inf = 1e18; const int maxn = 1e5 + 7; const int mod = 1e9 + 7; int n , w , h , dist[1000][1000]; char a[1000][1000]; bool used[1000][1000]; void sigma(){ cin >> n >> w >> h; int b , c , d , e; for (int i = 1; i <= h; i++) { for (int j = 1; j <= w; j++) { cin >> a[i][j]; if (a[i][j] == '1') b = i , c = j; else if (a[i][j] == '2') d = i , e = j; } } cout << 2; } signed main(){ // freopen("haircut.in" , "r" , stdin); // freopen("haircut.out" , "w" , stdout); ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int test = 1; // cin >> test; while(test--) { sigma(); } }

Compilation message (stderr)

robots.cpp: In function 'void sigma()':
robots.cpp:29:6: warning: variable 'b' set but not used [-Wunused-but-set-variable]
   29 |  int b , c , d , e;
      |      ^
robots.cpp:29:10: warning: variable 'c' set but not used [-Wunused-but-set-variable]
   29 |  int b , c , d , e;
      |          ^
robots.cpp:29:14: warning: variable 'd' set but not used [-Wunused-but-set-variable]
   29 |  int b , c , d , e;
      |              ^
robots.cpp:29:18: warning: variable 'e' set but not used [-Wunused-but-set-variable]
   29 |  int b , c , d , e;
      |                  ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...