Submission #1105319

#TimeUsernameProblemLanguageResultExecution timeMemory
1105319monaxiaHotspot (NOI17_hotspot)C++17
0 / 100
8 ms1904 KiB
#include <bits/stdc++.h> #define pb push_back #define ppb pop_back #define fr first #define sc second #define all(v) v.begin(), v.end() #define mod (long long)(1e9 + 7) #define eps (long long)(1e-9) using namespace std; using ll = long long; using ull = unsigned long long; using ld = long double; ll LIMIT = 2e3 + 5; void solve(){ ld ans = 0; for(int i = 1; i <= 80; i ++){ system("testmaker.exe"); system("code.exe"); system("solution.exe"); cout << "Test #" << i << ": "; if(system("fc test.out test.ans"))cout << "Wrong\n"; else cout << "Correct\n", ans += 0.125; } cout << "Total Points: " << fixed << setprecision(2) << ans; } signed main() { // cin.tie(0)->sync_with_stdio(0); ll n = 1; while(n) { solve(); n --; printf("\n"); } // cerr << "Time elapsed: " << 1.0 * clock() / CLOCKS_PER_SEC << " s.\n"; }

Compilation message (stderr)

hotspot.cpp: In function 'void solve()':
hotspot.cpp:21:15: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   21 |         system("testmaker.exe");
      |         ~~~~~~^~~~~~~~~~~~~~~~~
hotspot.cpp:22:15: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   22 |         system("code.exe");
      |         ~~~~~~^~~~~~~~~~~~
hotspot.cpp:23:15: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   23 |         system("solution.exe");
      |         ~~~~~~^~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...