Submission #20657

#TimeUsernameProblemLanguageResultExecution timeMemory
20657우리OJ (#35)채점 시스템 (OJUZ11_judge)C++98
Compilation error
0 ms0 KiB
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <memory.h> #include <math.h> #include <assert.h> #include <queue> #include <map> #include <set> #include <string> #include <algorithm> #include <iostream> #include <functional> #include <unordered_map> #include <unordered_set> #include <list> #include <bitset> using namespace std; typedef pair<int, int> Pi; typedef long long ll; #define pii Pi #define pll PL #define Fi first #define Se second #define pb(x) push_back(x) #define sz(x) ((int)(x).size()) #define rep(i, n) for(int i=0;i<n;i++) #define all(x) (x).begin(), (x).end() typedef tuple<int, int, int> t3; typedef pair<ll, ll> PL; void solve(){ int n, m; cin >> n >> m; ll L = 1; while(L <= n)L *= 10; int ans = 0; while(1){ if(n + L <= m)ans++, L *= 10; else break; } cout << ans << endl; } int main(){ int Tc = 1; scanf("%d", &Tc); for(int tc=1;tc<=Tc;tc++){ //printf("Case #%d: ", tc); solve(); } return 0; }

Compilation message (stderr)

In file included from /usr/include/c++/5/unordered_map:35:0,
                 from judge.cpp:14:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support \
  ^
judge.cpp:30:9: error: 'tuple' does not name a type
 typedef tuple<int, int, int> t3;
         ^
judge.cpp: In function 'int main()':
judge.cpp:47:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  int Tc = 1; scanf("%d", &Tc);
                              ^