Submission #477416

#TimeUsernameProblemLanguageResultExecution timeMemory
477416maks007Maxcomp (info1cup18_maxcomp)C++14
0 / 100
1 ms316 KiB
#include "bits/stdc++.h" using namespace std; using ld = long double; #define int long long #define ss second #define ff first #define pii pair <int, int> #define undef -1 #define inf INT_MAX #define PI acos((ld)-1); #define NoTime ios::sync_with_stdio(0); cin.tie(0); #define all(x) x.begin(), x.end() #define rall(x) x.rbegin(), x.rend() void setIO(string str){ if(str == "") return; freopen((str+".in").c_str(), "r", stdin); freopen((str+".out").c_str(), "w", stdout); } signed main(void){ NoTime setIO(""); int t; int n, m; cin >> n >> m; int a[n][m]; for(int i = 0; i < n; i++) for(int j = 0; j < m; j++) cin >> a[i][j]; cout << 0; return 'm' - 109; }

Compilation message (stderr)

maxcomp.cpp: In function 'int main()':
maxcomp.cpp:29:6: warning: unused variable 't' [-Wunused-variable]
   29 |  int t;
      |      ^
maxcomp.cpp: In function 'void setIO(std::string)':
maxcomp.cpp:21:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   21 |  freopen((str+".in").c_str(), "r", stdin);
      |  ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
maxcomp.cpp:22:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   22 |  freopen((str+".out").c_str(), "w", stdout);
      |  ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...