Submission #1280037

#TimeUsernameProblemLanguageResultExecution timeMemory
1280037SmuggingSpunEsej (COCI15_esej)C++20
80 / 80
6 ms13312 KiB
#include<bits/stdc++.h> #define taskname "B" using namespace std; int main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); if(fopen(taskname".inp", "r")){ freopen(taskname".inp", "r", stdin); } int b; cin >> b >> b; for(int i = 0; i < b; i++){ int x = i; for(int j = 0; j < 5; j++, x /= 26){ cout << char(x % 26 + 97); } cout << " "; } }

Compilation message (stderr)

esej.cpp: In function 'int main()':
esej.cpp:7:24: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
    7 |                 freopen(taskname".inp", "r", stdin);
      |                 ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...