Submission #1059627

#TimeUsernameProblemLanguageResultExecution timeMemory
1059627KawakiMeidoBurza (COCI16_burza)C++17
Compilation error
0 ms0 KiB
/*Author: KawakiMeido*/ #include <bits/stdc++.h> #define pb push_back #define endl "\n" #define ll long long #define pii pair<int,int> #define fi first #define se second using namespace std; /*Constants*/ const int N = 2e5+10; const int INF = 1e9+7; const long long LLINF = 1e18+3; /*TestCases*/ int test=1; void solve(); void TestCases(bool v){ if (v) cin >> test; while(test--) solve(); } /*Global Variables*/ int n; /*Solution*/ void solve(){ cin >> n >> k; if (k*k>n){ cout << "NE" << endl; return; } cout << "DA" << endl; } /*Driver Code*/ signed main(){ ios_base::sync_with_stdio(0); cin.tie(0); TestCases(0); return 0; }

Compilation message (stderr)

burza.cpp: In function 'void solve()':
burza.cpp:30:17: error: 'k' was not declared in this scope
   30 |     cin >> n >> k;
      |                 ^